mirror of
https://github.com/nikdoof/django-evesde.git
synced 2025-12-13 10:52:17 +00:00
7 lines
211 B
Python
7 lines
211 B
Python
from math import sqrt
|
|
|
|
|
|
def euclidean_distance(origin, destination):
|
|
"""Calculates the Euclidean distance of two sets of x/y/z tuples"""
|
|
return sqrt(sum((a - b)**2 for a, b in zip(origin, destination)))
|