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

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