epraya.JRotmatrix#

JRotmatrix(alfa, beta, gamma)#

Creates the rotation matrix based in the Euler angles in degrees.

Parameters:
  • alfa (float) – Euler angle for rotations around the z axis

  • beta (float) – Euler angle for rotations around the y’ axis

  • gamma (float) – Euler angle for rotations around the z’’ axis

Returns:

Reuler (np.array) – Rotation matrix

Example

>>> import epraya as epr
>>> alfa,beta,gamma=20,30,40
>>> print(epr.JRotmatrix(alfa,beta,gamma))
[[ 0.40355885  0.96394587 -0.38302222]
[-0.78510165  0.5294539   0.3213938 ]
[ 0.4698463   0.17101006  0.8660254 ]]