14 lines
250 B
Python
14 lines
250 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*- coding: UTF-8 -*-
|
||
|
import math
|
||
|
|
||
|
|
||
|
def computeEuclideanDistance(x1, y1, x2, y2):
|
||
|
d = math.sqrt(math.pow((x1 - x2), 2) + math.pow((y1 - y2), 2))
|
||
|
return d
|
||
|
|
||
|
|
||
|
d_ag = computeEuclideanDistance(3, 104, 18, 90)
|
||
|
|
||
|
print(d_ag)
|