added utility function for camera to MathHelper