Function 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
).