nearest

fun nearest(point: Vector2): SegmentPoint

Find point on segment nearest to given point.

Parameters

point

The query point.