I created a very simple% color 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 a two-point distance as in this example:
But I do not need to show the line and the number by marking the distance, I just need to return the value of the segment.