Public Member Functions |
| Rectangle () |
| Rectangle (const Obj xmin, const Obj ymin, const Obj xmax, const Obj ymax) |
| Rectangle (const tlp::BoundingBox &b) |
| Rectangle (const Vector< Obj, 2 > &min, const Vector< Obj, 2 > &max) |
bool | intersect (const Rectangle &r) const |
bool | intersect (const Rectangle &r, Rectangle &intersection) const |
bool | isValid () const |
bool | isInside (const Vector< Obj, 2 > &p) const |
bool | isInside (const Rectangle &r) const |
void | translate (const tlp::Vector< Obj, 2 > &v) |
Obj | width () const |
Obj | height () const |
Obj | surface () const |
Obj | aspectRatio () const |
Vector< Obj, 2 > | center () const |
Vector< Obj, 2 > | operator[] (const unsigned int i) const |
Vector< Obj, 2 > & | operator[] (const unsigned int i) |
template<typename Obj>
struct tlp::Rectangle< Obj >
class for rectangle
Enables to both create and manipulate a 2D Axis Aligned Rectangle
Author : <a href="www.tulip-software.org>Tulip team