3 Answers

+ 4

We can form a right triangle with 2 points and Pythagoras's theorem would do the job.
In other cases it would be kinda trivial for straight-line. 😉

+ 2

distance = sqrt((point1x-point2x)**2+(point1y-point2y)**2)

+ 2

Use euclidean distance formula to calculate distance between two points. dist= √(( x1-x2)^2 +(y1-y2)^2)