Try rotating the camera so that one basis vector lines up with the origin. Then solve the problem in 2D!