Function lupnt::QuatCoeffToEulerAngles¶
Defined in File attitude_conversions.h
Function Documentation¶
-
Vec3 lupnt::QuatCoeffToEulerAngles(Vec4 quat)¶
Convert a quaternion to euler angles Reference: https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles.
- Parameters:
quat – quaternion [q0, q1, q2, q3] = [scalar, vector]
- Returns:
Vec3 euler angles [phi, theta, psi] = [roll, pitch, yaw] (radians) sequence (XYZ)