Rect< T > Class Template Reference

A 2d rectangle. More...

#include <Shapes2d.h>

Inheritance diagram for Rect:

Inheritance graph
[legend]
Collaboration diagram for Rect< T >:

Collaboration graph
[legend]
List of all members.

Public Methods

 Rect ()
 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

left
right
top
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).

Definition at line 26 of file Shapes2d.h.


The documentation for this class was generated from the following file:
Generated on Tue May 21 03:35:12 2002 for Archimedes by doxygen1.2.15