Regular API function

simTransformVector

Description Multiplies a vector with a transformation matrix (v=m*v). See also the other matrix/transformation functions.
C synopsis simInt simTransformVector(const simFloat* matrix,simFloat* vect)
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 return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis See simMultiplyVector
Lua parameters
-
Lua return values
-

All regular API functions on one page