Calculates the total length of a 2D polyline by summing the distances between consecutive points.
An array of 2D points representing the polyline.
The total length of the polyline as a number.
Calculates the total length of a 2D polyline by summing the distances between consecutive points.