Regular API function

simCopyMatrix / sim.copyMatrix

Description Deprecated. See sim.copyTable instead.
C/C++
synopsis
int simCopyMatrix(const double* matrixIn,double* matrixOut)
C/C++
parameters
matrixIn: matrix to be copied
matrixOut: copy of matrixIn (after the call)

matrixIn and matrixOut are pointers to 12 double values (the last row of the 4x4 matrix (0,0,0,1) is not needed)
The x-axis of the orientation component is (matrix[0],matrix[4],matrix[8])
The y-axis of the orientation component is (matrix[1],matrix[5],matrix[9])
The z-axis of the orientation component is (matrix[2],matrix[6],matrix[10])
The position component is (matrix[3],matrix[7],matrix[11])
C/C++
return value
-1 if operation was not successful
Lua
synopsis
float[12] matrixOut=sim.copyMatrix(float[12] matrixIn)
Lua
parameters
matrixIn: matrix to be copied
Lua
return values
matrixOut: copied matrix