rotMat44VecToVec
Get a rotation matrix between two vectors
Signatures
- Paramate.Math3D.rotMat44VecToVec( v1, v2, div = 1 )
Details
The function generates a 4x4 matrix for the rotation between two vectors. It can be set to generate only a fraction of the rotation.
Parameters
- v1
-
The starting a 3-dimensional vector of type [<number>, <number>, <number>].
- v2
-
The target a 3-dimensional vector of type [<number>, <number>, <number>].
- div
-
The fraction of the rotation. If set to bigger than 1, the calculated rotation between the vectors will be divided by it. This is useful for incremental rotations. Default = 1
Return value
A 4x4 rotation matrix.