3D transformations

this gave me a headache