Regular API function

simMultiplyVector

Description Multiplies a vector with a transformation matrix (v=m*v). See also the other matrix/transformation functions.
C synopsis See simTransformVector
C parameters
-
C return value
-
Lua synopsis table_3 resultVector=simMultiplyVector(table_12 matrix,table_3 vector)
Lua parameters
matrix: the transformation matrix (a table containing 12 values (the last row (0,0,0,1) is not required))
vector: the original vector (a table containing 3 values (the last element (1) of the homogeneous coordinates is not required)
Lua return values
resultVector: the result vector (a table containing 3 values (the last element (1) of the homogeneous coordinates is omitted))

All regular API functions on one page