RotMatrix44VecToVec

Get a rotation matrix between two vectors

Signatures

  • Paramate.Viewport.RotMatrix44VecToVec( 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 3-vector

v2

The target 3-vector

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.