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

Returns a quaternion from Euler angles.

  • euler_angles ([float, float, float]) – 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.

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


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