Sample Rotations
In order to try to explain things I thought it might help to work out a simple case where rotations are only allowed in mutiples of 90 degrees. This should make it easier to illustrate the orientation with a simple aeroplane figure, we can rotate this either about the x,y or z axis as shown here:
When we combine these rotations about the x,y and z axies in 90 degree multiples there are 24 possible orientations as in the table shown below.
In the following table we will need to know what quadrant the results are in, so I have taken some sample results from Math.atan2
















