Function Polyline2View.segmentCount

Number of consecutive line segments represented by the view.

size_t segmentCount() const pure nothrow @nogc @property @safe;

Empty and singleton polylines contain no segments.