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/6f38f0241829a620931ebe729ae0240b to your computer and use it in GitHub Desktop.
Save raganmd/6f38f0241829a620931ebe729ae0240b to your computer and use it in GitHub Desktop.
import numpy
def numpyDist(point1, point2):
p1 = numpy.array(point1)
p2 = numpy.array(point2)
return numpy.linalg.norm(p1-p2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment