closestPointTo

open fun closestPointTo(point: P): P(source)

Finds the point of the segment which is closest to the provided point.