I can provide a set of equations for rotating a set of coordinates around a "rotation vector". But to really understand the equations you need to spend some time with the mathematics of coordinate frame transformations.
My favorite reference on this subject is "Strapdown Analytics", by Paul G. Savage. His notation style is excellent and helps the reader follow the derivation.
