![]() |
Kale
|
#include <Circle.hpp>
Public Member Functions | |
Circle () | |
Circle (const Vector2f ¢er, float radius) | |
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 | center |
float | radius |
Represents a circle
Definition at line 26 of file Circle.hpp.
Circle::Circle | ( | ) |
Creates a circle at 0, 0 with a radius of 1
Definition at line 31 of file Circle.cpp.
Circle::Circle | ( | const Vector2f & | center, |
float | radius ) |
Creates a circle given the center and radius
center | The center |
radius | The radius |
Definition at line 40 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a circle
circle | The circle to check collision for |
Implements Kale::Geometry.
Definition at line 87 of file Circle.cpp.
|
overridevirtual |
Gets a bounding box for this geometry to check for quick and inaccurate collisions
Implements Kale::Geometry.
Definition at line 48 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a line
line | The line to check collision for |
Implements Kale::Geometry.
Definition at line 109 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a point
point | The point to check collision for |
Implements Kale::Geometry.
Definition at line 57 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a ray
ray | The ray to check collision for |
Implements Kale::Geometry.
Definition at line 97 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implements Kale::Geometry.
Definition at line 78 of file Circle.cpp.
|
overridevirtual |
Checks for collision with a rectangle
rect | The rectangle to check collision for |
Implements Kale::Geometry.
Definition at line 67 of file Circle.cpp.
Vector2f Kale::Circle::center |
The center of the circle
Definition at line 31 of file Circle.hpp.
float Kale::Circle::radius |
The radius of the circle
Definition at line 36 of file Circle.hpp.