Add support for 3D rotations

If you're interested...