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

Indicates whether or not an axis-alighed rectangle (B) is fully contained within another axis-aligned rectangle (A).

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 Contains(
	float minXA,
	float minYA,
	float maxXA,
	float maxYA,
	float minXB,
	float minYB,
	float maxXB,
	float maxYB
)
Public Shared Function Contains ( _
	minXA As Single, _
	minYA As Single, _
	maxXA As Single, _
	maxYA As Single, _
	minXB As Single, _
	minYB As Single, _
	maxXB As Single, _
	maxYB As Single _
) As Boolean
public:
static bool Contains(
	float minXA, 
	float minYA, 
	float maxXA, 
	float maxYA, 
	float minXB, 
	float minYB, 
	float maxXB, 
	float maxYB
)

Parameters

minXA
Single
The minimum x-axis bounds of rectangle A.
minYA
Single
The minimum y-axis bounds of rectangle A.
maxXA
Single
The maximum x-axis bounds of rectangle A.
maxYA
Single
The maximum y-axis bounds of rectangle A.
minXB
Single
The minimum x-axis bounds of rectangle B.
minYB
Single
The minimum y-axis bounds of rectangle B.
maxXB
Single
The maximum x-axis bounds of rectangle B.
maxYB
Single
The maximum y-axis bounds of rectangle B.

Return Value

True if rectangle B is fully contained by rectangle A.

Remarks

The test is inclusive of the edges of the rectangles.

See Also