magpie.coords.rotate3d_Euler

magpie.coords.rotate3d_Euler(x, y, z, angles, axes='zyz', center=[0.0, 0.0, 0.0])

Rotates points in 3D cartesian coordinates by Euler angle around specified axes.

Parameters
x, y, zfloat or array

Cartesian coordinates.

anglesarray

Euler angles.

axesstr, optional

Euler angle axes, default z-y-z rotations.

centerlist[float], optional

Center of rotation, default=[0., 0., 0.].

Returns
xrot, yrot, zrotarray or float

Rotated x, y and z coordinates.