Rotation.euler_angles
- Rotation.euler_angles(static=True, axes='xyz')[source]
Returns Euler angles from the rotation according to specified axis sequence and rotation type.
- Parameters:
- staticbool, optional
If True the rotations are applied to a static frame. If False, to a rotational.
- axesstr, optional
A 3 character string specifying the order of the axes.
- Returns:
- [float, float, float]
The 3 Euler angles.
Examples
>>> from compas.tolerance import TOL >>> ea1 = 1.4, 0.5, 2.3 >>> args = False, "xyz" >>> R1 = Rotation.from_euler_angles(ea1, *args) >>> ea2 = R1.euler_angles(*args) >>> TOL.is_allclose(ea1, ea2) True