3

How can I know the length of each part of the arrow and what their full length?

points = {{6, 32}, {9, 53}, {18, 42}, {32, 51}};
Graphics[{Arrow[points]}]

enter image description here

JPeter
  • 1,089
  • 6
  • 19

3 Answers3

8

To be concise in a different way:

N@Total@(Norm /@ Differences@points)
BlacKow
  • 6,428
  • 18
  • 32
5

You can know the length of each part of the arrow and his full length in this way:

distList = 
 EuclideanDistance[points[[# + 1]], points[[#]]] & /@ Range[Length[points] - 1] // N
Plus @@ distList

{21.2132,14.2127,16.6433}

52.0692

LCarvalho
  • 9,233
  • 4
  • 40
  • 96
3
N[ArcLength/@Line/@Partition[points,2,1]]

{21.2132, 14.2127, 16.6433}

N@ArcLength[Line[points]]

52.0692

kglr
  • 394,356
  • 18
  • 477
  • 896