#include <line.h>
Inherits physics::Area.
Public Member Functions | |
| float | x1 () const |
| Returns x coordinate of the first position. | |
| float | y1 () const |
| Returns y coordinate of the first position. | |
| float | x2 () const |
| Returns x coordinate of the second position. | |
| float | y2 () const |
| Returns y coordinate of the second position. | |
| Vector2D | getP1 () const |
| Return the first position. | |
| Vector2D | getP2 () const |
| Return the second position. | |
| float | getLength () const |
| Get method for the length of the line. | |
| float | getLengthSq () const |
| Get method for the length of the line squared. | |
| float | getMOI () const |
| Get the Moment of Inertia. | |
| float physics::Line::getLength | ( | ) | const [inline] |
Get method for the length of the line.
| float physics::Line::getLengthSq | ( | ) | const [inline] |
Get method for the length of the line squared.
| float physics::Line::getMOI | ( | ) | const [inline] |
Get the Moment of Inertia.
1.5.6