import math


def calc_distance(asteroid1, asteroid2):
    """Calculates the distance between two asteroids"""
    x1, y1 = asteroid1
    x2, y2 = asteroid2
    dx = x2 - x1
    dy = y2 - y1
    return math.sqrt(dx * dx + dy * dy)