distance method

double distance(
  1. Coordinate point
)

@param {!goog.math.Coordinate} point A coordinate. @return {number} The distance between the point and the closest point inside the rectangle. Returns 0 if the point is inside the rectangle.

Implementation

double distance(Coordinate point)
{
  return Math.sqrt( squaredDistance(point) );
}