Added static transform but screwed up trigonometry.

The trigonometric transform between cartesian and camera coordinates is
not setup correctly. Check the setup() function.