Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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) );