Description
|
Computes the interpolated transformation matrix between matrixIn1 and matrixIn2. Quaternions are used internally. See also the section about positions, orientations and transformations |
C/C++ synopsis
|
simInt simInterpolateMatrices(const simFloat* matrixIn1,const simFloat* matrixIn2,simFloat interpolFactor,simFloat* matrixOut)
|
C/C++ parameters |
matrixIn1: the first input matrix
matrixIn2: the second input matrix
interpolFactor: the interpolation factor, a value between 0.0 and 1.0 (0.0--> matrixOut=matrixIn1, 1.0--> matrixOut=matrixIn2)
matrixOut: the output matrix (the result of the interpolation).
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
float[12] resultMatrix=sim.interpolateMatrices(float[12] matrixIn1,float[12] matrixIn2,float interpolFactor)
|
Lua parameters |
matrixIn1: the first input matrix (a table containing 12 values)
matrixIn2: the second input matrix (a table containing 12 values)
interpolFactor: the interpolation factor, a value between 0.0 and 1.0 (0.0--> resultMatrix=matrixIn1, 1.0--> resultMatrix=matrixIn2)
|
Lua return values
|
resultMatrix: the result matrix (a table containing 12 values)
|
Python synopsis |
list resultMatrix=sim.interpolateMatrices(list matrixIn1,list matrixIn2,float interpolFactor) |