Rotation.
More...
#include <b2_math.h>
Rotation.
Definition at line 287 of file b2_math.h.
◆ b2Rot() [1/2]
◆ b2Rot() [2/2]
b2Rot::b2Rot |
( |
float |
angle | ) |
|
|
inlineexplicit |
Initialize from an angle in radians.
TODO_ERIN optimize
Definition at line 292 of file b2_math.h.
◆ GetAngle()
float b2Rot::GetAngle |
( |
| ) |
const |
|
inline |
Get the angle in radians.
Definition at line 315 of file b2_math.h.
◆ GetXAxis()
b2Vec2 b2Rot::GetXAxis |
( |
| ) |
const |
|
inline |
◆ GetYAxis()
b2Vec2 b2Rot::GetYAxis |
( |
| ) |
const |
|
inline |
◆ Set()
void b2Rot::Set |
( |
float |
angle | ) |
|
|
inline |
Set using an angle in radians.
TODO_ERIN optimize
Definition at line 300 of file b2_math.h.
◆ SetIdentity()
void b2Rot::SetIdentity |
( |
| ) |
|
|
inline |
Set to the identity rotation.
Definition at line 308 of file b2_math.h.
The documentation for this struct was generated from the following file: