Homographies, quaternions and rotations