to_euler#

Quaternion.to_euler(degrees: bool = False) ndarray[source]#

Return the unit quaternions as Euler angles in the Bunge convention [Rowenhorst et al., 2015].

Parameters:
degrees

If True, the given angles are returned in degrees. Default is False.

Returns:
eu

Array of Euler angles in radians (degrees=False) or degrees (degrees=True), in the ranges \(\phi_1 \in [0, 2\pi]\), \(\Phi \in [0, \pi]\), and \(\phi_1 \in [0, 2\pi]\).

Examples using Quaternion.to_euler#

Rotations mapping the fundamental sector on S2

Rotations mapping the fundamental sector on S2