Click or drag to resize
DigitalRuneCollisionDetection.HaveAabbContact Method
Returns true if the axis-aligned bounding boxes (AABBs) of two CollisionObjects are in contact.

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

Parameters

objectA
Type: DigitalRune.Geometry.Collisions.CollisionObject
The first collision object.
objectB
Type: DigitalRune.Geometry.Collisions.CollisionObject
The second collision object.

Return Value

Type: Boolean
true if the objects' AABBs are touching or intersecting; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionobjectA is null.
ArgumentNullExceptionobjectB is null.
Remarks
Only the (automatic computed) axis-aligned bounding boxes are tested - not the exact geometry of the objects. For an exact test, call HaveContact(CollisionObject, CollisionObject).
See Also