#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::BoundingBox2D | ( | double | tlx, | |
double | tly, | |||
double | brx, | |||
double | bry | |||
) |
BoundingBox2D::BoundingBox2D | ( | Vector2D | center, | |
double | width | |||
) |
bool BoundingBox2D::collide | ( | const BoundingBox2D | box | ) | const |
bool BoundingBox2D::collide | ( | const Vector2D | p | ) | const |
std::ostream& operator<< | ( | std::ostream & | Stream, | |
const BoundingBox2D & | box | |||
) | [friend] |
Referenced by BoundingBox2D(), collide(), left(), operator<<(), and top().
Referenced by bottom(), BoundingBox2D(), collide(), operator<<(), and right().