magpie.coords.rotate3d_Rodrigues

magpie.coords.rotate3d_Rodrigues(x, y, z, k, dphi)

Rotates points in 3D cartesian coordinates around an axis defined by the unit vector k.

Parameters
x, y, zfloat or array

Cartesian coordinates.

karray

k is a unit vector around which points will be rotated by an angle dphi.

dphifloat

Rodrigues rotation angle around the unit vector k.

Returns
xrot, yrot, zrotarray or float

Rotated x, y and z coordinates.