getEnvelope method

Envelope getEnvelope()

Implementation

Envelope getEnvelope() {
  // compute envelope lazily
  if (env == null) {
    env = new Envelope.empty();
    for (int i = 0; i < pts.length; i++) {
      env!.expandToIncludeCoordinate(pts[i]);
    }
  }
  return env!;
}