1 | initial version |
Just subtract left line coordinates from right line coordinates...
If right line is on 200, 100 and left line is 100, 100, the distance will be 100 in x and 0 in y...
If you want only one value (and not x and y coordinates), use Euclidian distance:
distance = sqrt(deltaX^2 + deltaY^2)
Using (200,100) and (100,100) again, the distance will be:
distance = sqrt((200-100)^ 2 + (100-100)^2) ... distance = sqrt(100ˆ2) ... distance = 10
2 | No.2 Revision |
Just subtract left line point coordinates from right line point coordinates...
If right line point is on 200, 100 (200,100) and left line is 100, 100, on (100, 100), the distance will be 100 in x and 0 in y...
If you want only one value (and not x and y coordinates), use Euclidian distance:
distance = sqrt(deltaX^2 + deltaY^2)
Using (200,100) and (100,100) again, the distance will be:
distance = sqrt((200-100)^ 2 + (100-100)^2) ... distance = sqrt(100ˆ2) ... distance = 10
3 | No.3 Revision |
Just subtract left point coordinates from right point coordinates...
If right point is on (200,100) and left line point is on (100, 100), the distance will be 100 in x and 0 in y...
If you want only one value (and not x and y coordinates), use Euclidian distance:
distance = sqrt(deltaX^2 + deltaY^2)
Using (200,100) and (100,100) again, the distance will be:
distance = sqrt((200-100)^ 2 + (100-100)^2) ... distance = sqrt(100ˆ2) ... distance = 10