Rotation along one axis.

TJHUNTER:
If you would look at the code (no download needed) you would see that it is far over 9000 characters long (even without the banks) and you can only post up to 9000 chars.

You can always break it in two...

You know that to get the angles you want you cannot process the individual angles separately, 3D rotation doesn't work like that. Typically you get the quaternion and convert to Euler angles.