rot(axis, angle) ⇒ object

Returns a Homogeneous transformation matrix that represents the rotation of an angle around an axis.

Kind: global function
Returns: object - 4x4 math.js matrix.

Param Type Description
axis object 3x1 math.js matrix representing the axis of rotation as a 3D vector.
angle number The angle of rotation, in radians.