Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active July 26, 2021 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/b1c92c88a92316afd1c63356095e08cc to your computer and use it in GitHub Desktop.
Save raganmd/b1c92c88a92316afd1c63356095e08cc to your computer and use it in GitHub Desktop.
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