class csBox A bounding box in 2D space
| | AddBoundingVertex (const csVector2& v) Add a new vertex and recalculate the bounding box. |
| | AddBoundingVertex (float x, float y) Add a new vertex and recalculate the bounding box. |
| | AddBoundingVertexSmart (float x, float y) Add a new vertex and recalculate the bounding box |
| | AddBoundingVertexSmart (const csVector2& v) Add a new vertex and recalculate the bounding box. |
| | csBox (float x1, float y1, float x2, float y2) Initialize this box with the given values. |
| | csBox () Initialize this box to empty. |
| | csBox (const csVector2& v) Initialize this box with one point. |
| | Empty () Test if this box is empty. |
| | In (float x, float y) Test if the given coordinate is in this box. |
| | MaxX () |
| | MaxY () |
| | MinX () |
| | MinY () |
| | operator!= (const csBox& box1, const csBox& box2) Tests if two bounding boxes are unequal. |
| | operator* (const csBox& box1, const csBox& box2) Compute the intersection of two bounding boxes. |
| | operator*= (const csBox& box) Compute the intersection of two bounding boxes. |
| | operator+ (const csBox& box1, const csBox& box2) Compute the union of two bounding boxes. |
| | operator+ (const csBox& box, const csVector2& point) Compute the union of a bounding box and a point. |
| | operator+= (const csBox& box) Compute the union of two bounding boxes. |
| | operator+= (const csVector2& point) Compute the union of a point with this bounding box. |
| | operator< (const csVector2& point, const csBox& box) Tests if a point is contained in a box. |
| | operator< (const csBox& box1, const csBox& box2) Tests if box1 is a subset of box2. |
| | operator== (const csBox& box1, const csBox& box2) Tests if two bounding boxes are equal. |
| | operator> (const csBox& box1, const csBox& box2) Tests if box1 is a superset of box2. |
| | Overlap (const csBox& box) Test if this box overlaps with the given box. |
| | Set (float x1, float y1, float x2, float y2) Sets the bounds of the box with the given values. |
| | StartBoundingBox (csVector2& v) Initialize this box to one vertex. |
| | StartBoundingBox () Initialize this box to empty. |
A bounding box in 2D space. In order to operate correctly, this bounding box assumes that all values entered or compared against lie within the range (-CS_BOUNDINGBOX_MAXVALUE, CS_BOUNDINGBOX_MAXVALUE). It is not recommended to use points outside of this range.
float miny
float maxx
float maxy
float MinX()
float MinY()
float MaxX()
float MaxY()
bool In(float x, float y)
bool Overlap(const csBox& box)
bool Empty()
void StartBoundingBox()
void StartBoundingBox(csVector2& v)
void AddBoundingVertex(float x, float y)
void AddBoundingVertexSmart(float x, float y)
void AddBoundingVertex(const csVector2& v)
void AddBoundingVertexSmart(const csVector2& v)
csBox()
csBox(const csVector2& v)
csBox(float x1, float y1, float x2, float y2)
void Set(float x1, float y1, float x2, float y2)
csBox& operator+= (const csBox& box)
csBox& operator+= (const csVector2& point)
csBox& operator*= (const csBox& box)
friend csBox operator+ (const csBox& box1, const csBox& box2)
friend csBox operator+ (const csBox& box, const csVector2& point)
friend csBox operator* (const csBox& box1, const csBox& box2)
friend bool operator== (const csBox& box1, const csBox& box2)
friend bool operator!= (const csBox& box1, const csBox& box2)
friend bool operator< (const csBox& box1, const csBox& box2)
friend bool operator> (const csBox& box1, const csBox& box2)
friend bool operator< (const csVector2& point, const csBox& box)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de