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

PoolArray!(godot.core.vector2.Vector2) getClosestPointsBetweenSegments2d (
  const(Vector2) p1,
  const(Vector2) q1,
  const(Vector2) p2,
  const(Vector2) q2
) nothrow @nogc;