AngularVec

From SIMboxWiki
Jump to navigation Jump to search

Description

Each constructor initializes the angular vector.

Syntax and Description

AngularVec(

);

Default constructor, initialize the angular vector to (0,0,0). (Roll = 0, Pitch =0, Yow =0).
AngularVec(

Ang r,
Ang p,
Ang y
);

Constructor, initialize the angular vector by the user input. (Roll = r, Pitch = p, Yow = y).
AngularVec (const Vec3D &o);
Constructor, initialize the angular vector by the user input vector. (Roll = o(Y), Pitch o(X), Yow = o(Z)).
AngularVec (const LinearVec& lookUp, const LinearVec& lookAt);
This constructor takes two lookUp and LookAt unit vectors and converts them to pitch yaw and roll