Rotation. More...
#include <b2Math.h>
Public Member Functions | |
| b2Rot () | |
| b2Rot (float32 angle) | |
| Initialize from an angle in radians. | |
| float32 | GetAngle () const |
| Get the angle in radians. | |
| b2Vec2 | GetXAxis () const |
| Get the x-axis. | |
| b2Vec2 | GetYAxis () const |
| Get the u-axis. | |
| void | Set (float32 angle) |
| Set using an angle in radians. | |
| void | SetIdentity () |
| Set to the identity rotation. | |
Public Attributes | |
| float32 | c |
| float32 | s |
| Sine and cosine. | |
| b2Rot::b2Rot | ( | ) | [inline] |
| b2Rot::b2Rot | ( | float32 | angle | ) | [inline, explicit] |
| float32 b2Rot::GetAngle | ( | ) | const [inline] |
| b2Vec2 b2Rot::GetXAxis | ( | ) | const [inline] |
| b2Vec2 b2Rot::GetYAxis | ( | ) | const [inline] |
| void b2Rot::Set | ( | float32 | angle | ) | [inline] |
| void b2Rot::SetIdentity | ( | ) | [inline] |