Function GeometrySingleton.getClosestPointToSegment

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

Vector3 getClosestPointToSegment (
  const(Vector3) point,
  const(Vector3) s1,
  const(Vector3) s2
) nothrow @nogc;