Last active
July 26, 2021 02:30
-
-
Save raganmd/b1c92c88a92316afd1c63356095e08cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def distance(x1, y1, z1, x2, y2, z2): | |
return math.sqrt((x2 - x1)**2 + (y2 - y1)**2 + (z2 - z1)**2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment