| ISupportClosestPointQueriesTGetClosestPointCandidates Method (Vector3F, Pose, ISpatialPartitionT, Vector3F, Pose, FuncT, T, 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 void GetClosestPointCandidates(
Vector3F scale,
Pose pose,
ISpatialPartition<T> otherPartition,
Vector3F otherScale,
Pose otherPose,
Func<T, T, float> callback
)
Sub GetClosestPointCandidates (
scale As Vector3F,
pose As Pose,
otherPartition As ISpatialPartition(Of T),
otherScale As Vector3F,
otherPose As Pose,
callback As Func(Of T, T, Single)
)
void GetClosestPointCandidates(
Vector3F scale,
Pose pose,
ISpatialPartition<T>^ otherPartition,
Vector3F otherScale,
Pose otherPose,
Func<T, T, float>^ callback
)
abstract GetClosestPointCandidates :
scale : Vector3F *
pose : Pose *
otherPartition : ISpatialPartition<'T> *
otherScale : Vector3F *
otherPose : Pose *
callback : Func<'T, 'T, 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.PartitioningISpatialPartitionT
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: SystemFuncT, T, 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.
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