OpenStructure
|
#include <composite2.hh>
Public Member Functions | |
Rectangle2 () | |
Rectangle2 (Vec2 topleft, Vec2 bottomright) | |
Real | GetWidth () const |
Real | GetHeight () const |
Vec2 | GetStart () const |
Vec2 | GetEnd () const |
void | SetStart (const Vec2 &v) |
void | SetEnd (const Vec2 &v) |
Real | GetArea () const |
Vec2 | operator[] (unsigned index) const |
Vec2 & | operator[] (unsigned index) |
Definition at line 45 of file composite2.hh.
Rectangle2 | ( | ) |
Rectangle2 | ( | Vec2 | topleft, |
Vec2 | bottomright | ||
) |
Real GetArea | ( | ) | const |
Vec2 GetEnd | ( | ) | const |
Real GetHeight | ( | ) | const |
Vec2 GetStart | ( | ) | const |
Real GetWidth | ( | ) | const |
Vec2 operator[] | ( | unsigned | index | ) | const |
Vec2& operator[] | ( | unsigned | index | ) |
void SetEnd | ( | const Vec2 & | v | ) |
void SetStart | ( | const Vec2 & | v | ) |