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
static (bool, optional) â If true the rotations are applied to a static frame. If not, to a rotational. Defaults to True.
axes (str, optional) â A 3 character string specifying the order of the axes. Defaults to âxyzâ.
- Returns
list of float (The 3 Euler angles.)
Examples
>>> ea1 = 1.4, 0.5, 2.3 >>> args = False, 'xyz' >>> R1 = Rotation.from_euler_angles(ea1, *args) >>> ea2 = R1.euler_angles(*args) >>> allclose(ea1, ea2) True