import math


def dist_calc(x, y):
    """Returns a distance calcultion fuction from a static (x, y)"""
    def func(x1, y1):
        return math.sqrt(math.pow(x1-x, 2) + math.pow(y1-y, 2))
    return func