1 #ifndef H_DYNACOE_BOUNDING_BOX
2 #define H_DYNACOE_BOUNDING_BOX
13 BoundingBox(
float x_,
float y_,
float w_,
float h_) :
28 bool ContainsBox(
const BoundingBox & a)
const {
30 a.x+a.width <= x+width &&
32 a.y+a.height <= y+width);
36 bool Overlaps(
const BoundingBox & other)
const {
38 x < other.x+other.width && x+width > other.x &&
39 y+other.height > other.y && y < other.y+other.height;
3D and 2D positional vector.
Definition: Vector.h:55