euler_angles_from_quaternion

compas.geometry.euler_angles_from_quaternion(q, static=True, axes='xyz')[source]

Returns Euler angles from a quaternion.

Parameters:
quaternion[float, float, float, float]

Quaternion as a list of four real values [w, x, y, z].

staticbool, optional

If True, the rotations are applied to a static frame. If False, the rotations are applied to a rotational frame.

axesstr, optional

A three-character string specifying the order of the axes.

Returns:
[float, float, float]

Euler angles as a list of three real values [a, b, c].