LineString<T extends Point<num>> constructor

LineString<T extends Point<num>>(
  1. Iterable<T> chain, {
  2. LineStringType type = LineStringType.any,
})

Create LineString from chain of points conforming by type.

Implementation

LineString(Iterable<T> chain, {this.type = LineStringType.any})
    : chain = chain is PointSeries<T> ? chain : PointSeries.view(chain) {
  validate();
}