Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate the distance between two points

def dist(p1,p2):
    return math.sqrt(((p1[0] - p2[0]) ** 2) + ((p1[1] - p2[1]) ** 2))
 
PREVIOUS NEXT
Tagged: #calculate #distance #points
ADD COMMENT
Topic
Name
9+6 =