Math::rectangle< TYPE > Class Template Reference
#include <rectangle.h>
Detailed Description
template<class TYPE>
class Math::rectangle< TYPE >
A 2d rectangle class.(C) 2003 RadonLabs GmbH
Public Member Functions | |
rectangle () | |
default constructor | |
rectangle (TYPE l, TYPE t, TYPE r, TYPE b) | |
constructor 1 | |
void | set (TYPE l, TYPE t, TYPE r, TYPE b) |
set content | |
bool | inside (TYPE x, TYPE y) const |
return true if point is inside | |
TYPE | width () const |
return width | |
TYPE | height () const |
return height | |
TYPE | centerX () const |
return center x | |
TYPE | centerY () const |
return center y |