jakke-graphics-ts
    Preparing search index...

    Function getLengthPolyline2d

    • Calculates the total length of a 2D polyline by summing the distances between consecutive points.

      Parameters

      • polyline: Polyline2d

        An array of 2D points representing the polyline.

      Returns number

      The total length of the polyline as a number.