getLength method

double getLength()
override

Returns the length of this LineString

@return the length of the linestring

Implementation

double getLength() {
  return Length.ofLine(points);
}