Function Curve2D.getClosestOffset

Returns the closest offset to to_point. This offset is meant to be used in interpolateBaked. to_point must be in this curve's local space.

double getClosestOffset (
  const(Vector2) to_point
) nothrow @nogc const;