Vizard 7 » Command Index » Vizard objects » transform » <transform>.makeVecRotVec
7.6

<transform>.makeVecRotVec

Sets this matrix to be rotation matrix which rotates from one vector onto another

<transform>.makeVecRotVec(  
v1  
v2  
)  
v1
A list of 3 numbers representing a vector
v2
A list of 3 numbers representing a vector

Remarks

Sets this matrix to be rotation matrix which rotates vector v1 onto v2.

Return Value

None

Example

X = vizmat.Transform()
X.makeVecRotVec([0,0,1],[0,1,0])