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