Regular API function

simTransformVector

Description Multiplies a vector with a transformation matrix (v=m*v). See also the other matrix/transformation functions.
C/C++
synopsis
simInt simTransformVector(const simFloat* matrix,simFloat* vect)
C/C++
parameters
matrix: the transformation matrix
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])
vect: the vector to be transformed (a pointer to 3 values (the last element of the homogeneous coordinates is not required (1)))
C/C++
return value
-1 if operation was not successful
Lua
synopsis
See sim.multiplyVector
Lua
parameters
Lua
return values
Python
synopsis
See sim.multiplyVector