rotate
Generates a rotation matrix given three angles.
Return
The rotation matrix as a Matrix4.
Parameters
pitch
The pitch angle in radians.
yaw
The yaw angle in radians.
roll
The roll angle in radians.
Generates a rotation matrix given x, y, z coordinates for the axis and an angle.
Return
The rotation matrix as a Matrix4.
Parameters
x
The x coordinate of the axis.
y
The y coordinate of the axis.
z
The z coordinate of the axis.
angle
The angle of rotation in radians.