Click or drag to resize
DigitalRuneCollisionAlgorithmGetClosestPoints Method
Gets the closest points of two collision objects.

Namespace: DigitalRune.Geometry.Collisions.Algorithms
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public ContactSet GetClosestPoints(
	CollisionObject objectA,
	CollisionObject objectB
)

Parameters

objectA
Type: DigitalRune.Geometry.CollisionsCollisionObject
The collision object A.
objectB
Type: DigitalRune.Geometry.CollisionsCollisionObject
The collision object B.

Return Value

Type: ContactSet
The contact set with the closest points.
Exceptions
ExceptionCondition
ArgumentNullExceptionobjectA is .
ArgumentNullExceptionobjectB is .
Remarks
Note that it is possible that two collision objects have "no closest points", for example if one collision object has an EmptyShape.
See Also