import math


def hd(inc, sd):
    """
    Calculate horizontal distance.

    :param inc: (float) inclination angle in degrees
    :param sd:  (float) slope distance in any units
    """
    return sd * math.cos(math.radians(inc))