Shouldn’t the slopped distance be considered instead of the height?

(Sayonara Zetsubou Sensei: chapter 233)