compas.geometry.euler_angles_from_quaternion

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

Returns Euler angles from a quaternion.

Parameters
  • quaternion (list) – 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. Defaults to True.

  • axes (str, optional) – A three-character string specifying the order of the axes. Defaults to 'xyz'.

Returns

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