Some basic camera calculation fixes

fixes #398