epraya.Rotmatrix#
- Rotmatrix(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.Rotmatrix(alfa,beta,gamma)) [[ 0.40355888 0.96394593 -0.38302222] [-0.7851017 0.52945382 0.3213938 ] [ 0.46984631 0.17101007 0.8660254 ]]