[This is preliminary documentation and is subject to change.]

Indicates whether or not two axis-aligned rectangles intersect.

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool IntersectsAABB(
	float minAX,
	float minAY,
	float maxAX,
	float maxAY,
	float minBX,
	float minBY,
	float maxBX,
	float maxBY
)
Public Shared Function IntersectsAABB ( _
	minAX As Single, _
	minAY As Single, _
	maxAX As Single, _
	maxAY As Single, _
	minBX As Single, _
	minBY As Single, _
	maxBX As Single, _
	maxBY As Single _
) As Boolean
public:
static bool IntersectsAABB(
	float minAX, 
	float minAY, 
	float maxAX, 
	float maxAY, 
	float minBX, 
	float minBY, 
	float maxBX, 
	float maxBY
)

Parameters

minAX
Single
The minimum x-axis bounds of rectangle A.
minAY
Single
The minimum y-axis bounds of rectangle A.
maxAX
Single
The maximum x-axis bounds of rectangle A.
maxAY
Single
The maximum y-axis bounds of rectangle A.
minBX
Single
The minimum x-axis bounds of rectangle B.
minBY
Single
The minimum y-axis bounds of rectangle B.
maxBX
Single
The maximum x-axis bounds of rectangle B.
maxBY
Single
The maximum y-axis bounds of rectangle B.

Return Value

True if the two rectangles intersect in any manner.

Remarks

The test is inclusive of the edges of the rectangles.

See Also