If we assume that the center of projection was at the origin so d is positive then
which yields the same results as before if you observe that d now refers to a positive quantity rather than a negative quantity.