|
MochiEngine
|
Class representing a line between two points in space. The inherited position variable is the start of the line, and the end point is where it ends. This is meant to be used for checking for collisions between different types of shapes. More...
#include <Shapes.h>
Public Member Functions | |
| Line (const Vector2f &position, const Vector2f &end) | |
| virtual std::unique_ptr< Shape > | Clone () const |
| virtual bool | IsColliding (const Shape &other) const override |
| virtual bool | Collides (const Point &p) const override |
| virtual bool | Collides (const Line &l) const override |
| virtual bool | Collides (const Circle &c) const override |
| virtual bool | Collides (const Rectangle &r) const override |
| Public Member Functions inherited from Mochi::Physics::Shape | |
| Shape (const Vector2f &position) | |
Public Attributes | |
| Vector2f | End |
| Public Attributes inherited from Mochi::Physics::Shape | |
| Vector2f | Position |
Class representing a line between two points in space. The inherited position variable is the start of the line, and the end point is where it ends. This is meant to be used for checking for collisions between different types of shapes.
|
virtual |
Implements Mochi::Physics::Shape.
|
overridevirtual |
Implements Mochi::Physics::Shape.
|
overridevirtual |
Implements Mochi::Physics::Shape.
|
overridevirtual |
Implements Mochi::Physics::Shape.
|
overridevirtual |
Implements Mochi::Physics::Shape.
|
overridevirtual |
Implements Mochi::Physics::Shape.