Pythagoras Theorem for Right Angle Walls