| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tlp::Rectangle< Obj > Struct Template Reference class for rectangle More...
Inheritance diagram for tlp::Rectangle< Obj >:
Collaboration diagram for tlp::Rectangle< Obj >:
Public Member Functions
Detailed Descriptiontemplate<typename Obj>
|
tlp::Rectangle< Obj >::Rectangle | ( | ) | [inline] |
Create a new invalid rectangle
tlp::Rectangle< Obj >::Rectangle | ( | const Obj | xmin, |
const Obj | ymin, | ||
const Obj | xmax, | ||
const Obj | ymax | ||
) | [inline] |
Create a new rectangle with (*this)[0] = min = (xmin, ymin); (*this)[1] = max = (xmax, ymax);
tlp::Rectangle< Obj >::Rectangle | ( | const tlp::BoundingBox & | b | ) | [inline] |
Create a new Rectangle from a Bounding Box correct conversion from 3D -> 2D
tlp::Rectangle< Obj >::Rectangle | ( | const Vector< Obj, 2 > & | min, |
const Vector< Obj, 2 > & | max | ||
) | [inline] |
create a new Rectangle
Obj tlp::Rectangle< Obj >::aspectRatio | ( | ) | const [inline] |
Return the aspect ratio of the reactangle a value between [0..1]
Vector<Obj, 2> tlp::Rectangle< Obj >::center | ( | ) | const [inline] |
Return the center of a rectangle
Obj tlp::Rectangle< Obj >::height | ( | ) | const [inline] |
Return the height of the rectangle
bool tlp::Rectangle< Obj >::intersect | ( | const Rectangle< Obj > & | r, |
Rectangle< Obj > & | intersection | ||
) | const [inline] |
bool tlp::Rectangle< Obj >::intersect | ( | const Rectangle< Obj > & | r | ) | const [inline] |
bool tlp::Rectangle< Obj >::isInside | ( | const Vector< Obj, 2 > & | p | ) | const [inline] |
Return true if point is stricly inside the AARectangle
bool tlp::Rectangle< Obj >::isInside | ( | const Rectangle< Obj > & | r | ) | const [inline] |
bool tlp::Rectangle< Obj >::isValid | ( | ) | const [inline] |
Obj tlp::Rectangle< Obj >::surface | ( | ) | const [inline] |
Return the surface of the rectangle
void tlp::Rectangle< Obj >::translate | ( | const tlp::Vector< Obj, 2 > & | v | ) | [inline] |
Translate "this" by vector v
Obj tlp::Rectangle< Obj >::width | ( | ) | const [inline] |
Return the width of the rectangle
Tulip Software by LaBRI Visualization Team 2001 - 2012 |