Dualie
|
A class that represents a bounding box. More...
#include <Rect.hpp>
Public Member Functions | |
Rect (T left, T top, T width, T height) | |
Rect (dl::Vector2< T > position, dl::Vector2< T > size) | |
Rect (const dl::Rect< T > &rect) | |
bool | intersects (Rect< T > rect) |
Returns whether a rect intersects the bounds of this rect. | |
bool | contains (dl::Vector2< T > point) |
Returns whether a point intersects the bounds of this rect. | |
Public Attributes | |
T | left |
T | top |
T | width |
T | height |
A class that represents a bounding box.
T | The type of number that its members use |
|
inline |
Returns whether a point intersects the bounds of this rect.
point | The point to check |
Returns whether a rect intersects the bounds of this rect.
rect | The rect to check |