PitchRoll Class Reference

Pitch/roll rotations helper object/functions. More...

List of all members.

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)

Detailed Description

Pitch/roll rotations helper object/functions.

Pitch(x) -> roll(y) rotation order roll in -pi, pi pitch in -pi/2,pi/2


Constructor & Destructor Documentation

PitchRoll ( )

Member Function Documentation

Matrix4 ToMatrix ( )
Vector3 ToVector ( )