| CompressedAabbTreeGetClosestPointCandidates Method (Vector3F, Pose, ISpatialPartitionInt32, Vector3F, Pose, FuncInt32, Int32, Single) |
Gets all items that are candidates for the smallest closest-point distance to items in a
given partition.
Namespace: DigitalRune.Geometry.PartitioningAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void GetClosestPointCandidates(
Vector3F scale,
Pose pose,
ISpatialPartition<int> otherPartition,
Vector3F otherScale,
Pose otherPose,
Func<int, int, float> callback
)
Public Sub GetClosestPointCandidates (
scale As Vector3F,
pose As Pose,
otherPartition As ISpatialPartition(Of Integer),
otherScale As Vector3F,
otherPose As Pose,
callback As Func(Of Integer, Integer, Single)
)
public:
virtual void GetClosestPointCandidates(
Vector3F scale,
Pose pose,
ISpatialPartition<int>^ otherPartition,
Vector3F otherScale,
Pose otherPose,
Func<int, int, float>^ callback
) sealed
abstract GetClosestPointCandidates :
scale : Vector3F *
pose : Pose *
otherPartition : ISpatialPartition<int> *
otherScale : Vector3F *
otherPose : Pose *
callback : Func<int, int, float32> -> unit
override GetClosestPointCandidates :
scale : Vector3F *
pose : Pose *
otherPartition : ISpatialPartition<int> *
otherScale : Vector3F *
otherPose : Pose *
callback : Func<int, int, float32> -> unit
Parameters
- scale
- Type: DigitalRune.Mathematics.AlgebraVector3F
The scale of this spatial partition. - pose
- Type: DigitalRune.GeometryPose
The pose of this spatial partition. - otherPartition
- Type: DigitalRune.Geometry.PartitioningISpatialPartitionInt32
The other spatial partition to test against. - otherScale
- Type: DigitalRune.Mathematics.AlgebraVector3F
The scale of the otherPartition. - otherPose
- Type: DigitalRune.GeometryPose
The pose of the otherPartition relative to this spatial partition.
- callback
- Type: SystemFuncInt32, Int32, Single
The callback that is called with each found candidate item. The method must compute the
closest-point on the candidate item and return the squared closest-point distance.
Implements
ISupportClosestPointQueriesTGetClosestPointCandidates(Vector3F, Pose, ISpatialPartitionT, Vector3F, Pose, FuncT, T, Single)Exceptions Remarks
This method can be used to quickly find the closest-points between two models which are both
managed using a
ISpatialPartitionT. The given spatial partition can be
rotated and scaled. The scale and the pose transform the other
otherPartition into the space of this spatial partition. The scale is
applied before the pose.
See Also