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]
.static (bool, optional) – If True, the rotations are applied to a static frame. If False, the rotations are applied to a rotational frame.
axes (str, 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]
.