Does anyone have a simple quaterion camera (where the camera moves not the scene) example.

I was trying to implement zoom, panning, and rotating (similar to how Maya operates) and having a little trouble?