#include <flatland.hpp>
Inheritance diagram for Flatland::Geometry:
Definition at line 26 of file flatland.hpp.
Public Member Functions | |
Geometry () | |
virtual void | UpdateBounds ()=0 |
virtual void | SetCenter (const vec2 ¢er) |
vec2 | Center () const |
virtual void | SetAxis (const vec2 &axis) |
void | Rotate (float theta) |
void | Rotate (const vec2 &xform) |
vec2 | Axis () const |
vec2 | Axis (int i) const |
virtual void | SetMass (Body body, float density) const |
virtual Shape | GetShape () const=0 |
const aabb & | GetBounds () const |
Protected Attributes | |
aabb | bounds |
vec2 | axis |
vec2 | center |