I think that you have not really understood the proof.

The usual formula for that distance is, using your diagram, .

But in that the is thenormalto the plane.

That formula is derived by using the cosine of the angle between .

The distance is the length of one side of a right triangle with hypotenuse .