GeometrySingleton.getClosestPointToSegment2d

Returns the 2d point on the 2d segment (s1, s2) that is closest to point. The returned point will always be inside the specified segment.

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

Meta