I’m trying to get the length between two coordinates using a Raphael.js path.
If I for example have this path:
M612 295 L690 429 L642 565 L540 432 L711 379 L763 502 L683 585 L480 612 L605 466 L717 318 L888 466 L756 586 L609 392 L835 248 L874 472 L927 622 L724 674 L708 403 L563 391
Then I want to be able to get the length between 711 379 and 927 622, is that possible?
Using pythagorean theorem, just like Ivan pointed out, is the way to go.
I created this lib to solve my problem.
Here is an example.