code: function normalizePoint(point) {
  
          return new g.Point(
              point.x === 0 ? 0 : Math.abs(point.x) / point.x,
              point.y === 0 ? 0 : Math.abs(point.y) / point.y
          );
      }
docs: return a normalized vector from given point used to determine the direction of a difference of two points