import math


def get_hexagonal_prism_volume(pitch, height):
    """Returns the volume of a hexagonal prism."""
    half_pitch = pitch / 2
    area = math.sqrt(3) * 2 * pow(half_pitch, 2)
    volume = area * height
    return volume