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,−1,0],[0.9397,0,0.342],[−0.342,0,0.9397]]