1
I created a SVG
very simple with a triangle.
<svg class="triangulo" height="210" width="500">
<polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" />
</svg>
And what I want to know is how to make a script that results in the distance of two points as in this example:
However I do not need to appear the line and the number demarcating the distance, I just need to return the value of the segment.