getEulerXYZ#
- inline void getEulerXYZ(
- const XQuat<float> &q,
- float &X,
- float &Y,
- float &Z,
- Extracts Euler angles from a quaternion using XYZ rotation order. - Converts a quaternion to Euler angles using the XYZ rotation order. The rotation sequence is Rx(X) * Ry(Y) * Rz(Z) using intrinsic rotations. - Note - Handles gimbal lock cases when the Y rotation is near ±90 degrees - Parameters:
- q – [in] Input quaternion representing the rotation 
- X – [out] Output X-axis rotation angle in radians 
- Y – [out] Output Y-axis rotation angle in radians 
- Z – [out] Output Z-axis rotation angle in radians