rotate

Method:

rotate - concatenate rotation transformation

Syntax:

v.rotate(fAngle, vAxis);

Parameters:

fAngle - rotation angle in radians

Returns:

-

Description:

Concatenates rotation specified by angle, origin and rotation axis to the matrix. The rotation angle is defined in radians. If no origin is specified, [0, 0, 0] is assumed.

Example:

// rotate about the 'y' axis