euler2quat

converts euler angle to quaternion

Description

The method euler2quat defines a rotation by Euler angles. You can choose whether to use the Bunge (phi,Phi,phi2) convention or the Matthies (alpha,beta,gamma) convention.

Syntax

q = euler2quat(alpha,beta,gamma) -
q = euler2quat(phi1,Phi,phi2,'Bunge') -

Input

alpha, beta, gamma

double

phi1, Phi, phi2

double

param,val Parameters and values that control euler2quat
Parameter Description
'ABG, ZYZ'

Matthies (alpha, beta, gamma) convention (default)

'BUNGE, ZXZ'

Bunge (phi1,Phi,phi2) convention

Output

q

quaternion

See also

quaternion_index, quaternion/quaternion, axis2quat, Miller2quat, vec42quat, hr2quat