rotation & bounce

What is the best way to go about rotating an object in 2D and bouncing it off of the screen edges at the same time? Or more specific, what is the best way to deal with the moving axis?