Origin.euler_angles
- Origin.euler_angles(static=True, axes='xyz')[source]
The Euler angles from the rotation given by the frame.
- Parameters
static (bool, optional) – If True the rotations are applied to a static frame. If False, to a rotational.
axes (str, optional) – A 3 character string specifying the order of the axes.
- Returns
list[float] – Three numbers that represent the angles of rotations about the defined axes.
Examples
>>> ea1 = 1.4, 0.5, 2.3 >>> f = Frame.from_euler_angles(ea1, static=True, axes='xyz') >>> ea2 = f.euler_angles(static=True, axes='xyz') >>> allclose(ea1, ea2) True