Adding world and opengl coordinates conversion functions (should have done this a long time ago...)