How internally conversion of 2d to 3d?

Where will be your car, when it should go under a bridge, but you have only coordinates of x and y?