![]() |
Kale
|
#include <Rect.hpp>
Public Member Functions | |
Rect () | |
Rect (const Vector2f &topLeft, const Vector2f &bottomRight) | |
Vector2f | center () const |
Vector2f | topRight () const |
Vector2f | bottomLeft () const |
Rect | getBoundingBox () const override |
bool | pointCollision (Vector2f point) const override |
bool | rectCollision (RotatedRect rect) const override |
bool | rectCollision (Rect rect) const override |
bool | circleCollision (Circle circle) const override |
bool | rayCollision (Ray ray) const override |
bool | lineCollision (Line line) const override |
Public Attributes | |
Vector2f | topLeft |
Vector2f | bottomRight |
Vector2f Rect::bottomLeft | ( | ) | const |
Vector2f Rect::center | ( | ) | const |
|
overridevirtual |
Checks for collision with a circle
circle | The circle to check collision for |
Implements Kale::Geometry.
|
overridevirtual |
Gets a bounding box for this geometry to check for quick and inaccurate collisions
Implements Kale::Geometry.
|
overridevirtual |
Checks for collision with a line
line | The line to check collision for |
Implements Kale::Geometry.
|
overridevirtual |
Checks for collision with a point
point | The point to check collision for |
Implements Kale::Geometry.
|
overridevirtual |
Checks for collision with a ray
ray | The ray to check collision for |
Implements Kale::Geometry.
|
overridevirtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implements Kale::Geometry.
|
overridevirtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implements Kale::Geometry.
Vector2f Rect::topRight | ( | ) | const |
Vector2f Kale::Rect::bottomRight |
Vector2f Kale::Rect::topLeft |