Click or drag to resize
DigitalRuneCollisionDetectionGetClosestPoints Method
Computes the closest points between two CollisionObjects.

Namespace: DigitalRune.Geometry.Collisions
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 first collision object.
objectB
Type: DigitalRune.Geometry.CollisionsCollisionObject
The second collision object.

Return Value

Type: ContactSet
The ContactSet with the closest-point information. The ContactSet will have exactly 1 Contact (describing the closest-point pair).
Exceptions
ExceptionCondition
ArgumentNullExceptionobjectA is .
ArgumentNullExceptionobjectB is .
Remarks

Collision filtering (see CollisionFilter) is NOT applied.

See Also