This library was originally written to handle rotataions fusing gyro, compass and accelerometer.
This library can handle any rotations in 3 space.
One coordinate system that is particularly useful is NED (x = North, y = East, z = Down).