#include <box2.h>

Public Member Functions |
|
| GEOMEXPORT | Box2 () |
| GEOMEXPORT | Box2 (const IPoint2 a, const IPoint2 b) |
| GEOMEXPORT int | IsEmpty () |
| GEOMEXPORT void | SetEmpty () |
| GEOMEXPORT void | Rectify () |
| GEOMEXPORT void | Scale (float f) |
| GEOMEXPORT void | Translate (IPoint2 t) |
| IPoint2 | GetCenter () |
| int | x () |
| int | y () |
| int | w () |
| int | h () |
| void | SetW (int w) |
| void | SetH (int h) |
| void | SetX (int x) |
| void | SetY (int y) |
| void | SetWH (int w, int h) |
| void | SetXY (int x, int y) |
| GEOMEXPORT Box2 & | operator= (const RECT &r) |
| GEOMEXPORT Box2 & | operator= (RECT &r) |
| GEOMEXPORT Box2 & | operator+= (const Box2 &b) |
| GEOMEXPORT Box2 & | operator+= (const IPoint2 &p) |
| int | operator== (const Box2 &b) const |
| GEOMEXPORT int | Contains (const IPoint2 &p) const |
| GEOMEXPORT Box2 | ( | ) |
| GEOMEXPORT int IsEmpty | ( | ) |
| GEOMEXPORT void SetEmpty | ( | ) |
| GEOMEXPORT void Rectify | ( | ) |
| GEOMEXPORT void Scale | ( | float | f | ) |
| GEOMEXPORT void Translate | ( | IPoint2 | t | ) |
| IPoint2 GetCenter | ( | ) | [inline] |
{ return IPoint2((left+right)/2, (top+bottom)/2); }
| int x | ( | ) | [inline] |
{ return min(left,right); }
| int y | ( | ) | [inline] |
| int w | ( | ) | [inline] |
| int h | ( | ) | [inline] |
| void SetW | ( | int | w | ) | [inline] |
{ right = left + w -1; }
| void SetH | ( | int | h | ) | [inline] |
{ bottom = top + h -1; }
| void SetX | ( | int | x | ) | [inline] |
{ left = x; }
| void SetY | ( | int | y | ) | [inline] |
{ top = y; }
| void SetWH | ( | int | w, |
| int | h | ||
| ) | [inline] |
| void SetXY | ( | int | x, |
| int | y | ||
| ) | [inline] |
| GEOMEXPORT Box2& operator= | ( | const RECT & | r | ) |
| GEOMEXPORT Box2& operator= | ( | RECT & | r | ) |
| int operator== | ( | const Box2 & | b | ) | const [inline] |
{ return (left==b.left && right==b.right && top==b.top && bottom==b.bottom); }
| GEOMEXPORT int Contains | ( | const IPoint2 & | p | ) | const |