Rect (T left_in, T right_in, T top_in, T bottom_in)
void
expandToEnclosePoint (T x, T y)
Rect< T >
intersectRect (const Rect< T > &r)
bool
hasPositiveArea ()
Public Attributes
T
left
T
right
T
top
T
bottom
Detailed Description
template<typename T>
class Rect< T >
A 2d rectangle.
Assumes that the bottom is lower than the top, and the left is lower than the right. This is consistent with a lower-lefthand origin (OpenGL), and not with an upper-lefthand origin (windows GDI functions).