#include <capsule.h>
Inherits physics::Area.
Public Member Functions | |
Capsule2D (Vector2D p1, Vector2D p2, float r) | |
Constructor. | |
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 straight segment. | |
float | getLengthSq () const |
Get method for the length of the straight segment squared. | |
float | getMOI () const |
Get the Moment of Inertia. |
float physics::Capsule2D::getLength | ( | ) | const [inline] |
Get method for the length of the straight segment.
float physics::Capsule2D::getLengthSq | ( | ) | const [inline] |
Get method for the length of the straight segment squared.