struct CP::PointQueryInfo
- CP::PointQueryInfo
- Struct
- Value
- Object
Overview
Holds the result of a point query made on a Shape
or Space
.
Defined in:
chipmunk/query.crConstructors
Instance Method Summary
-
#distance : Float64
The distance to the point (negative if the point is inside the shape).
- #distance=(distance : Float64)
-
#gradient : Vect
The gradient of the signed distance function.
- #gradient=(gradient : Vect)
-
#point : Vect
The closest point on the shape's surface (in world space coordinates).
- #point=(point : Vect)
-
#shape : Shape
The nearest shape
- #shape=(shape : Shape)
Constructor Detail
Instance Method Detail
The gradient of the signed distance function.
The value should be similar to point/distance
, but accurate even for very small values of #distance
.
The closest point on the shape's surface (in world space coordinates).