Regular API function

simMultiplyVector / sim.multiplyVector

Description Multiplies a vector with a pose or a matrix (e.g. v=m*v). See also the other matrix/transformation functions.
C/C++
synopsis
See simTransformVector
C/C++
parameters
C/C++
return value
Lua synopsis float[3*n] resultVector=sim.multiplyVector(float[7]/float[12] pose/matrix,float[3*n] vector)
Lua parameters
pose/matrix: a pose (x,y,z,qx,qy,qz,qw) or a 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*n values. Each triplet represents one vector to be multiplied.
Lua return values
resultVector: the result vector: a table containing 3*n values. Each triplet represents one vector.
Python synopsis list resultVector=sim.multiplyVector(list pose/matrix,list vector)