Regular API function

simBuildMatrixQ / sim.buildMatrixQ

Description Builds a transformation matrix based on a position vector and a quaternion. See also the section about positions, orientations and transformations
C/C++
synopsis
simInt simBuildMatrixQ(const simFloat* position,const simFloat* quaternion,simFloat* matrix)
C/C++
parameters
position: pointer to 3 simFloat values
quaternion: pointer to 4 simFloat values
matrix: pointer to 12 simFloat values
C/C++
return value
-1 if operation was not successful
Lua
synopsis
float[12] matrix=sim.buildMatrixQ(float[3] position,float[4] quaternion)
Lua
parameters
position: table of 3 values
quaternion: table of 4 values
Lua
return values
matrix: table containing the transformation matrix
Python
synopsis
list matrix=sim.buildMatrixQ(list position,list quaternion)

<