various math fixes
add funcs to the camera