![]() |
Kale
|
#include <Geometry.hpp>
Public Member Functions | |
virtual Rect | getBoundingBox () const =0 |
virtual bool | pointCollision (Vector2f point) const =0 |
virtual bool | rectCollision (RotatedRect rect) const =0 |
virtual bool | rectCollision (Rect rect) const =0 |
virtual bool | circleCollision (Circle circle) const =0 |
virtual bool | rayCollision (Ray ray) const =0 |
virtual bool | lineCollision (Line line) const =0 |
All geometries (rect/path/line/etc) must inherit from this struct. This struct contains function pointers to all collision methods
Definition at line 32 of file Geometry.hpp.
|
pure virtual |
Checks for collision with a circle
circle | The circle to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Gets a bounding box for this geometry to check for quick and inaccurate collisions
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Checks for collision with a line
line | The line to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Checks for collision with a point
point | The point to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Checks for collision with a ray
ray | The ray to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.
|
pure virtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implemented in Kale::Circle, Kale::Line, Kale::Ray, Kale::Rect, and Kale::RotatedRect.