i3assist.Euler¶
-
class
i3assist.Euler(phi=0.0, theta=0.0, psi=0.0, unit='deg')[source]¶ Describes a particle’s orientation using ZXZ extrinsic euler angles.
The first rotation (phi) is about the z-axis (z). The second rotation (theta) is about the new x-axis (x’). The third rotation (psi) is about the new z-axis (z’‘) after the second rotation.
All rotations are of the coordinate axes and not of point coordinates.
Parameters: - phi (
float, optional) – First rotation about the z-axis (z). - theta (
float, optional) – Second rotation about the new x-axis (x’). - psi (
float, optional) – Third rotation about the new z-axis (z’‘). - unit (
str, optional) – Whether rotations are in degrees “deg” or radians “rad”.
Methods
__init__([phi, theta, psi, unit])copy()Returns a copy of the euler object. degrees([inplace])Converts Euler object to describe rotations in units of degrees. invert([inplace])Returns a copy of euler object with inverted rotations. normalize([inplace])Returns a copy of euler object with rotations in old I3 bounds. pos_string()Returns string of angles in old I3 pos format. radians([inplace])Converts Euler object to describe rotations in units of radians. to_matrix()Returns the RotationMatrix object equivalent of Euler object. trf_string()Returns string of angles in new I3 trf format. Attributes
angleslistoffloat– Array of rotations in order.phifloat– First rotation about the z-axis (z).psifloat– Third rotation about the new z-axis (z”).thetafloat– Second rotation about the new x-axis (x’).unitstr– Describes the unit of rotations as degrees or radians.- phi (