<reponame>huq-industries/carto-spatial-extension<filename>modules/transformations/redshift/lib/center_lib/helper.py
# Copyright (c) 2020, <NAME> (Python3 implementation)
# Copyright (c) 2021, CARTO

from __future__ import division
from math import sqrt


def euclidean_distance(p1, p2):
    return sqrt((p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2)

# Copyright (c) 2020, <NAME> (Python3 implementation)
# Copyright (c) 2021, CARTO

from __future__ import division
from math import sqrt


def euclidean_distance(p1, p2):
    return sqrt((p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2)
# Copyright (c) 2020, <NAME> (Python3 implementation) # Copyright (c) 2021, CARTO