![]() |
Kale
|
#include <Line.hpp>
Public Member Functions | |
Line () | |
Line (const Vector2f &point1, const Vector2f &point2) | |
Vector2f | getNormal () const |
bool | isPerpendicular (Ray ray) const |
bool | isPerpendicular (Line line) const |
bool | isParallel (Ray ray) const |
bool | isParallel (Line line) 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 | point1 |
Vector2f | point2 |
|
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.
Vector2f Line::getNormal | ( | ) | const |
bool Line::isParallel | ( | Line | line | ) | const |
bool Line::isParallel | ( | Ray | ray | ) | const |
bool Line::isPerpendicular | ( | Line | line | ) | const |
bool Line::isPerpendicular | ( | Ray | ray | ) | const |
|
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.