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[float, float, float]

Three numbers that represent the angles of rotations about the specified axes.

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, float]

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