quaternion_from_euler_angles

compas.geometry.quaternion_from_euler_angles(e, static=True, axes='xyz')[source]

Returns a quaternion from Euler angles.

Parameters
  • euler_angles (list) – Three numbers that represent the angles of rotations about the specified axes.

  • 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 – Quaternion as a list of four real values [w, x, y, z].