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

Indicates whether or not a point is contained within an axis-aligned rectangle.

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 minX,
	float minY,
	float maxX,
	float maxY,
	float x,
	float y
)
Public Shared Function Contains ( _
	minX As Single, _
	minY As Single, _
	maxX As Single, _
	maxY As Single, _
	x As Single, _
	y As Single _
) As Boolean
public:
static bool Contains(
	float minX, 
	float minY, 
	float maxX, 
	float maxY, 
	float x, 
	float y
)

Parameters

minX
Single
The minimum x-axis bounds of the rectangle.
minY
Single
The minimum y-axis bounds of the rectangle.
maxX
Single
The maximum x-axis bounds of the rectangle.
maxY
Single
The maximum y-axis bounds of the rectangle.
x
Single
x-value of the point (x, y) to test.
y
Single
y-value of the point (x, y) to test.

Return Value

True if the point lies within the rectangle.

Remarks

The test is inclusive of the edges of the rectangle.

See Also