closestPoint static method

Point closestPoint(
  1. Point point,
  2. Segment segment
)

Find the point on a given segment (great-circle arc or shorter arc) that is closest to a given point.

Implementation

static mapkit_geometry_point.Point closestPoint(
    mapkit_geometry_point.Point point,
    mapkit_geometry_geometry.Segment segment) {
  return _closestPoint(
    point,
    segment,
  );
}