Regular API function

simGetEulerAnglesFromMatrix / sim.getEulerAnglesFromMatrix

Description Retrieves the Euler angles from a transformation matrix. See also the section about positions, orientations and transformations
C/C++
synopsis
simInt simGetEulerAnglesFromMatrix(const simFloat* matrix,simFloat* eulerAngles)
C/C++
parameters
matrix: pointer to 12 simFloat values
eulerAngles: pointer to 3 simFloat values
C/C++
return value
-1 if operation was not successful
Lua
synopsis
float[3] eulerAngles=sim.getEulerAnglesFromMatrix(float[12] matrix)
Lua
parameters
matrix: table to 12 values
Lua
return values
eulerAngles: table to 3 values
Python
synopsis
list eulerAngles=sim.getEulerAnglesFromMatrix(list matrix)

<