Length of the base (must be positive)
Height of the pyramid (must be positive)
Gets the base length.
Gets the vertical height.
Calculates slant height: l = √(h² + (b/2)²)
Calculates surface area: A = b² + 2b * slantHeight
Calculates volume: V = (1/3) * b² * h
Represents a right square pyramid.