import math


def perp_distance(point, line):
    
    """
    Returns the perpendicular offset distance between a given point (x, y)
    and a line evaluated at the x value of the point.
    """
    
    return (point.y - line(point.x)) / math.sqrt(1.0 + line.slope ** 2)