First time here? Check out the FAQ!
answered Apr 5 '13
for a straight line, the euklidean distance is:
sqrt( (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y) );