pointQuery method

(double, PointQueryInfo) pointQuery({
  1. required Vector2 point,
})

Perform a nearest point query. It finds the closest point on the surface of shape to a specific point. The value returned is the distance between the points. A negative distance means the point is inside the shape.

Implementation

(double distance, PointQueryInfo info) pointQuery({required Vector2 point}) => _shape.pointQuery(point: point);