RollPitch Class Reference

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

List of all members.

Public Member Functions

 RollPitch ()
 RollPitch (Vector2 v)
 RollPitch (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.

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


Constructor & Destructor Documentation

RollPitch ( )

Member Function Documentation

Matrix4 ToMatrix ( )
Vector3 ToVector ( )