#include <polygon.h>
Inherits physics::Area.
Public Member Functions | |
float | getMOI () const |
Get the Moment of Inertia. | |
void | scale (float scale) |
Scale the shape. | |
Static Public Member Functions | |
static Polygon * | create (Vector2D *points, const int size) |
Create a polygon. Performs convexity checking. | |
static int | makeConvexHull (Vector2D *points, const int count) |
float Polygon::getMOI | ( | ) | const |
Get the Moment of Inertia.
void physics::Polygon::scale | ( | float | scale | ) | [inline] |
Scale the shape.
scale | Float specifying the value by which to scale |
int Polygon::makeConvexHull | ( | Vector2D * | points, | |
const int | count | |||
) | [static] |
Given an array of points, find the convex hull.