Frame.from_euler_angles
-
classmethod
Frame.
from_euler_angles
(euler_angles, static=True, axes='xyz', point=[0, 0, 0]) Construct a frame from a rotation represented by Euler angles.
- Parameters
euler_angles (list of float) – Three numbers that represent the angles of rotations about the defined axes.
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’.
point (list of float, optional) – The point of the frame. Defaults to
[0, 0, 0]
.
- Returns
compas.geometry.Frame
– The constructed frame.
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