rotMat44

Get a rotation matrix from an axis and an angle.

Signatures

  •   Paramate.Math3D.rotMat44( axis, alpha )

Details

The function generates a 4x4 matrix for the rotation around a given axis by a given angle

Parameters

axis

The axis of the rotation. This is a 3-dimensional vector of type [<number>, <number>, <number>].

angle

The angle of the rotation (in radiants).

Return value

A 4x4 rotation matrix that is the resulting rotation.