Function Navigation2D.getClosestPoint

Returns the navigation point closest to the point given. Points are in local coordinate space.

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