What is the slant height in a rectangular or square Pyramid

The slant height of a rectangular or square pyramid is the distance from the apex (top) to the midpoint of an edge of the base. It can be calculated using the Pythagorean theorem, where the height of the pyramid is one leg of the right triangle, half the length of the base is the other leg, and the slant height is the hypotenuse.