OverSim
|
BoundingBox2D class. More...
#include <BoundingBox2D.h>
Public Member Functions | |
BoundingBox2D () | |
BoundingBox2D (Vector2D tl, Vector2D br) | |
BoundingBox2D (double tlx, double tly, double brx, double bry) | |
BoundingBox2D (Vector2D center, double width) | |
bool | collide (const BoundingBox2D box) const |
bool | collide (const Vector2D p) const |
double | top () |
double | bottom () |
double | left () |
double | right () |
Public Attributes | |
Vector2D | tl |
Vector2D | br |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const BoundingBox2D &box) |
BoundingBox2D class.
axies aligned two dimensional bounding box
Definition at line 34 of file BoundingBox2D.h.
BoundingBox2D::BoundingBox2D | ( | ) |
Definition at line 26 of file BoundingBox2D.cc.
Definition at line 28 of file BoundingBox2D.cc.
BoundingBox2D::BoundingBox2D | ( | double | tlx, |
double | tly, | ||
double | brx, | ||
double | bry | ||
) |
BoundingBox2D::BoundingBox2D | ( | Vector2D | center, |
double | width | ||
) |
double BoundingBox2D::bottom | ( | ) |
Definition at line 78 of file BoundingBox2D.cc.
bool BoundingBox2D::collide | ( | const BoundingBox2D | box | ) | const |
bool BoundingBox2D::collide | ( | const Vector2D | p | ) | const |
double BoundingBox2D::left | ( | ) |
Definition at line 83 of file BoundingBox2D.cc.
double BoundingBox2D::right | ( | ) |
Definition at line 88 of file BoundingBox2D.cc.
double BoundingBox2D::top | ( | ) |
Definition at line 73 of file BoundingBox2D.cc.
|
friend |
Definition at line 93 of file BoundingBox2D.cc.
Vector2D BoundingBox2D::br |
Definition at line 47 of file BoundingBox2D.h.
Referenced by bottom(), BoundingBox2D(), collide(), operator<<(), and right().
Vector2D BoundingBox2D::tl |
Definition at line 47 of file BoundingBox2D.h.
Referenced by BoundingBox2D(), collide(), left(), operator<<(), and top().