Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATRect::Intersect
bool CATRect::Intersect ( const CATRect srcRect,
CATRect intersectRect = 0 
) const [inline]

Intersect() determines if two rectangles intersect, then calculates the rectangle of intersection between two rectangles if any.

Parameters:
srcRect - rectangle to check for intersection against this one.
intersectRect - ptr to rectangle to receive the intersecting rectangle between the two.
Returns:
bool - true if they intersect, false otherwise.

Definition at line 331 of file CATRect.h.

References CATRECT::bottom, CATMax(), CATMin(), Height(), CATRECT::left, CATRECT::right, CATRECT::top, and Width().

Referenced by CATWindow::CleanBackground(), CATTab::Draw(), CATSlider::Draw(), CATProgress::Draw(), CATLayer::Draw(), CATTab::PostDraw(), CATLayer::PostDraw(), and CATWindow::PostDrawText().


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