GeometrySingleton.getClosestPointsBetweenSegments2d

Given the two 2d segments (p1, p2) and (q1, q2), finds those two points on the two segments that are closest to each other. Returns a PoolVector2Array that contains this point on (p1, p2) as well the accompanying point on (q1, q2).

struct GeometrySingleton
@nogc nothrow
PoolVector2Array
getClosestPointsBetweenSegments2d
(
in Vector2 p1
,
in Vector2 q1
,
in Vector2 p2
,
in Vector2 q2
)

Meta