Function Curve3D.getClosestPoint

Returns the closest point (in curve's local space) to to_point. to_point must be in this curve's local space.

Vector3 getClosestPoint (
  const(Vector3) to_point
) nothrow @nogc const;