closestPointOnSegment static method

Point closestPointOnSegment(
  1. Point p,
  2. Point p1,
  3. Point p2
)

Returns the closest point from a point p on a segment p1 to p2.

Implementation

external static Point closestPointOnSegment(Point p, Point p1, Point p2);