Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to calculate distance between two points

1. Get the coordinates of both points in space.
1. Subtract the x-coordinates of one point from the other, same for the y components.
1. Square both results separately.
1. Sum the values you got in the previous step.
1. Find the square root of the result above.

(x1-x2)squared+(y1+y2)squared=distances squared
 
PREVIOUS NEXT
Tagged: #calculate #distance #points
ADD COMMENT
Topic
Name
5+9 =