| AdaptiveAabbTreeTGetClosestPointCandidates Method (Aabb, Single, FuncT, Single) |
Gets all items that are candidates for the smallest closest-point distance to a given
axis-aligned bounding box (AABB).
Namespace: DigitalRune.Geometry.PartitioningAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public float GetClosestPointCandidates(
Aabb aabb,
float maxDistanceSquared,
Func<T, float> callback
)
Public Function GetClosestPointCandidates (
aabb As Aabb,
maxDistanceSquared As Single,
callback As Func(Of T, Single)
) As Single
public:
virtual float GetClosestPointCandidates(
Aabb aabb,
float maxDistanceSquared,
Func<T, float>^ callback
) sealed
abstract GetClosestPointCandidates :
aabb : Aabb *
maxDistanceSquared : float32 *
callback : Func<'T, float32> -> float32
override GetClosestPointCandidates :
aabb : Aabb *
maxDistanceSquared : float32 *
callback : Func<'T, float32> -> float32
Parameters
- aabb
- Type: DigitalRune.Geometry.ShapesAabb
The axis-aligned bounding box (AABB). - maxDistanceSquared
- Type: SystemSingle
The allowed squared distance between two points. (This an optional parameter that is used
internally to improve performance. The callback might still be called
with an item that has a distance greater than Math.Sqrt(maxDistanceSquared)! So use
this parameter with care. To check all items, set the parameter to
PositiveInfinity.)
- callback
- Type: SystemFuncT, 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.
Return Value
Type:
Single
The squared closest-point distance found during the search. -1 if the search was aborted or
the search space is empty.
Implements
ISupportClosestPointQueriesTGetClosestPointCandidates(Aabb, Single, FuncT, Single)Exceptions See Also