#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) |
axies aligned two dimensional bounding box
Definition at line 34 of file BoundingBox2D.h.
| BoundingBox2D::BoundingBox2D | ( | ) |
| BoundingBox2D::BoundingBox2D | ( | double | tlx, | |
| double | tly, | |||
| double | brx, | |||
| double | bry | |||
| ) |
| BoundingBox2D::BoundingBox2D | ( | Vector2D | center, | |
| double | width | |||
| ) |
| double BoundingBox2D::bottom | ( | ) |
| bool BoundingBox2D::collide | ( | const Vector2D | p | ) | const |
| bool BoundingBox2D::collide | ( | const BoundingBox2D | box | ) | const |
| double BoundingBox2D::left | ( | ) |
| double BoundingBox2D::right | ( | ) |
| double BoundingBox2D::top | ( | ) |
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const BoundingBox2D & | box | |||
| ) | [friend] |
Definition at line 47 of file BoundingBox2D.h.
Referenced by bottom(), BoundingBox2D(), collide(), operator<<(), and right().
Definition at line 47 of file BoundingBox2D.h.
Referenced by BoundingBox2D(), collide(), left(), operator<<(), and top().
1.5.8