getEnvelope method

Envelope getEnvelope()

Implementation

Envelope getEnvelope() {
  Envelope env = new Envelope.empty();
  if (start != null && end != null) {
    for (int? i = start; i! < end!; i++) {
      env.expandToInclude(pts.getX(i), pts.getY(i));
    }
  }
  return env;
}