BoundingBox
Bounding box
Template parameters
Public member functions
// Construct a new Bounding Box object
BoundingBox(T x_, T y_, T w_, T h_);
// Construct a new Bounding Box object
BoundingBox(const std::pair<T, T> &pos, const std::pair<T, T> &size);
// Compare two bounding boxes
bool operator==(const BoundingBox &other) const;
// Compare two bounding boxes
bool operator!=(const BoundingBox &other) const;
// Check if the bounding box collide with another bounding box
bool collide(const BoundingBox &other) const;
// Check if the bounding box collide with a point
bool collide(const std::pair<T, T> &pos) const;
// Check if the bounding box collide with a point
bool collide(T x_, T y_) const;
// Check if the bounding box collide with another bounding box
bool collide(const std::pair<T, T> &pos, const std::pair<T, T> &size) const;
// Check if the bounding box collide with another bounding box
bool collide(T x_, T y_, T w_, T h_) const;