PointsClosestResult (object)¶
Members¶
Vec3 | position | |
Vec3 | scaling | |
Boolean | hasScaling | |
GeometryLocation | location | |
Ref<PointsSpatialQueryCache> | queryCache |
Methods¶
PointsClosestResult ( in PointsClosestResult other ) | |
PointsClosestResult ( in Ref<PointsSpatialQueryCache> queryCache ) | |
PointsClosestResult () | |
PointsClosestResult | clone ? () |
Boolean | compareAndUpdate ! ( in Size objectIndex, out Scalar maxScaledSquaredDistance ) |
copyResultFrom ! ( in Ref<ClosestResult> other ) | |
reset ! ( in Vec3 position, in Vec3 scaling, in Boolean hasScaling ) |
Methods in detail¶
PointsClosestResult ( in PointsClosestResult other )
copy constructor
PointsClosestResult ( in Ref<PointsSpatialQueryCache> queryCache )
default constructor
PointsClosestResult PointsClosestResult.clone? ()
clone method
Boolean PointsClosestResult.compareAndUpdate! ( in Size objectIndex, out Scalar maxScaledSquaredDistance )
If the getClosest resulting squared scaled distance is <= maxScaledSquaredDistance, returns ‘true’ and the object should preserve location information for that best candidate.
PointsClosestResult.copyResultFrom! ( in Ref<ClosestResult> other )
Sets the resulting getClosest location from the other ClosestResult (same type)
PointsClosestResult.reset! ( in Vec3 position, in Vec3 scaling, in Boolean hasScaling )
Resets the content of the query (new getClosest beginning). If ‘hasScaling’, then ‘scaling’ will contain a non-uniform scaling vector. Else, ‘scaling’ will be :ref:`Vec3 <vec3>`(1,1,1).