hmatrix_rotate_about


Create rotation matrix

Syntax:

A = hmatrix_rotate_about(direction, angle) A = hmatrix_rotate_about(direction, angle, center)

Description:

Create matrix for rotation by angle degrees about the specified direction direction - rotation axis (float, 1x3) angle - rotation angle (float, degrees) center - rotation center (float, 1x3) A - transformation matrix (float, 4x4)