import math


def distance(point1, point2):
    """ Calculates distance between two points.
    :param point1: tuple (x, y) with coordinates of the first point
    :param point2: tuple (x, y) with coordinates of the second point
    :return: distance between two points in pixels
    """
    return math.sqrt(math.pow(point1[0] - point2[0], 2) + math.pow(point1[1] - point2[1], 2))