Rotate a point around the X axis by rotation radians using the matrix | 1 0 0 | | 0 cos(xRotation) -sin(xRotation) | | 0 sin(xRotation) cos(xRotation) |
Rotate a point around the Y axis by rotation radians using the matrix | cos(yRotation) 0 sin(xRotation) | | 0 1 0 | | -sin(xRotation) 0 cos(xRotation) |
Rotate a point around the Z axis by rotation radians using the matrix | cos(zRotation) -sin(zRotation) 0 | | sin(zRotation) cos(zRotation) 0 | | 0 0 1 |