import math


def get_distance(loc1, loc2):
    """ Computes the Euclidian distance between two 2D points."""
    x_diff = loc1.x - loc2.x
    y_diff = loc1.y - loc2.y
    return math.sqrt(x_diff**2 + y_diff**2)