Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATRect::InRect
bool CATRect::InRect ( CATInt32  x,
CATInt32  y 
) const [inline]

InRect() returns true if the point is inside the rectangle, and false if it is outside.

A point is outside the rectangle if it is on the bottom right corner. e.g. (top,left) is inclusive, (bottom,right) is exclusive.

Parameters:
x - x position of point to check
y - y position of point to check
Returns:
bool - true if point is inside rect, false otherwise

Definition at line 312 of file CATRect.h.

References CATRECT::bottom, CATRECT::left, CATRECT::right, and CATRECT::top.


Generated on Mon Feb 11 04:10:51 2008 for Game Accessibility Suite by doxygen 1.5.4