import math


def is_far_from_inner_wall(x, y, x_values, y_values, threshold):
    """
    determine if the point is fairly distant from points on polygon
    :param x: point_x
    :param y: point_y
    :param x_values: x coordinates of polygon
    :param y_values: y coordinates of polygon
    :param threshold: maximum distance
    :return: true or false
    """

    for k in range(len(x_values)):
        if math.hypot(x - x_values[k], y - y_values[k]) < threshold:
            return False

    return True