There was an error while loading. Please reload this page.
Extracts the three ZXZ Euler angles from a 3×3 rotation matrix.
This function is located in the pymath module. See pymath for the angle convention.
pymath
alpha, beta, gamma = pymath.euler_angles_from_matrix(mat)
mat
0
alpha
beta
[0, 180]
gamma
rot(z, alpha) · rot(x, beta) · rot(z, gamma)
[-90, 90]
beta -> -beta alpha -> alpha + 180 gamma -> gamma - 180
pymath.matrix_from_euler_angles
local R = {{0, -1, 0}, {1, 0, 0}, {0, 0, 1}} local alpha, beta, gamma = pymath.euler_angles_from_matrix(R) -- alpha == 90, beta == 0, gamma == 0 (one of several equivalent representations)
Minimum PYTHA Version: V27
pymath, pymath.matrix_from_euler_angles, pymath.rotation_from_quat