Click or drag to resize
DigitalRuneISupportClosestPointQueriesTGetClosestPointCandidates 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.Partitioning
Assembly: 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
)

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
ExceptionCondition
ArgumentNullExceptionotherPartition is .
ArgumentNullExceptioncallback is .
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