GeometrySingleton.getClosestPointToSegmentUncapped2d

Returns the 2d point on the 2d line defined by (s1, s2) that is closest to point. The returned point can be inside the segment (s1, s2) or outside of it, i.e. somewhere on the line extending from the segment.

struct GeometrySingleton
@nogc nothrow
Vector2
getClosestPointToSegmentUncapped2d
(
in Vector2 point
,
in Vector2 s1
,
in Vector2 s2
)

Meta