Box2D
2.3.0
A 2D Physics Engine for Games
|
Rotation. More...
#include <b2Math.h>
Public Member Functions | |
b2Rot (float32 angle) | |
Initialize from an angle in radians. More... | |
void | Set (float32 angle) |
Set using an angle in radians. More... | |
void | SetIdentity () |
Set to the identity rotation. | |
float32 | GetAngle () const |
Get the angle in radians. | |
b2Vec2 | GetXAxis () const |
Get the x-axis. | |
b2Vec2 | GetYAxis () const |
Get the u-axis. | |
Public Attributes | |
float32 | s |
Sine and cosine. | |
float32 | c |
Rotation.
|
inlineexplicit |
Initialize from an angle in radians.
TODO_ERIN optimize
|
inline |
Set using an angle in radians.
TODO_ERIN optimize