_GeometryInstancesClosestResult (object)¶
Members¶
Vec3 | position | |
GeometryLocation | location | |
Size | geometryKey | |
Ref<GeometryInstancesSpatialQueries> | queryCache |
Methods¶
_GeometryInstancesClosestResult ( in Ref<GeometryInstancesSpatialQueries> queryCache ) | |
_GeometryInstancesClosestResult ( in _GeometryInstancesClosestResult other ) | |
_GeometryInstancesClosestResult () | |
_GeometryInstancesClosestResult | clone ? () |
Boolean | compareAndUpdate ! ( in Size objectIndex, in _GeometryInstanceSpatialQueriesData geometryData, out Scalar maxScaledSquaredDistance ) |
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¶
_GeometryInstancesClosestResult ( in Ref<GeometryInstancesSpatialQueries> queryCache )
_GeometryInstancesClosestResult ( in _GeometryInstancesClosestResult other )
copy constructor
_GeometryInstancesClosestResult ()
default constructor
_GeometryInstancesClosestResult _GeometryInstancesClosestResult.clone? ()
clone method
Boolean _GeometryInstancesClosestResult.compareAndUpdate! ( in Size objectIndex, in _GeometryInstanceSpatialQueriesData geometryData, out Scalar maxScaledSquaredDistance )
Boolean _GeometryInstancesClosestResult.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.
_GeometryInstancesClosestResult.copyResultFrom! ( in Ref<ClosestResult> other )
Sets the resulting getClosest location from the other ClosestResult (same type)
_GeometryInstancesClosestResult.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).