mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
7 lines
150 B
Plaintext
7 lines
150 B
Plaintext
def distance(ax, ay, bx, by):
|
|
dx = bx - ax
|
|
dy = by - ay
|
|
return (dx * dx + dy * dy) ** 0.5
|
|
|
|
def main():
|
|
return distance(10.0, 10.0, 20.0, 20.0) |