|
Torque2D Reference
|
Rotation. More...
#include <b2Math.h>
Public Member Functions | |
| b2Rot () | |
| 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. More... | |
| float32 | GetAngle () const |
| Get the angle in radians. More... | |
| b2Vec2 | GetXAxis () const |
| Get the x-axis. More... | |
| b2Vec2 | GetYAxis () const |
| Get the u-axis. More... | |
Public Attributes | |
| float32 | s |
| Sine and cosine. More... | |
| float32 | c |
Rotation.
|
inline |
|
inlineexplicit |
Initialize from an angle in radians.
TODO_ERIN optimize
|
inline |
Get the angle in radians.
|
inline |
Get the x-axis.
|
inline |
Get the u-axis.
|
inline |
Set using an angle in radians.
TODO_ERIN optimize
|
inline |
Set to the identity rotation.
| float32 c |
| float32 s |
Sine and cosine.
1.8.10