Pitch/roll rotations helper object/functions. More...
Public Member Functions | |
PitchRoll () | |
PitchRoll (Vector2 v) | |
PitchRoll (Vector3 v) | |
Vector3 | ToVector () |
Matrix4 | ToMatrix () |
Static Public Member Functions | |
static Vector2 | FromVector (Vector3 v) |
Return pitch in x, roll in y. | |
static Vector3 | ToVector (Vector2 a) |
Return z=(0,0,1) rotated by roll->pitch. | |
Public Attributes | |
Vector2 | Data |
x: pitch y: roll (radians) |
Pitch/roll rotations helper object/functions.
Pitch(x) -> roll(y) rotation order roll in -pi, pi pitch in -pi/2,pi/2
PitchRoll | ( | ) |
Matrix4 ToMatrix | ( | ) |
Vector3 ToVector | ( | ) |