getEnvelope method

Envelope getEnvelope()

Gets the envelope of the chain.

@return the envelope of the chain

Implementation

Envelope getEnvelope() {
  if (env == null) {
    /**
     * The monotonicity property allows fast envelope determination
     */
    Coordinate p0 = pts[start];
    Coordinate p1 = pts[end];
    env = new Envelope.fromCoordinates(p0, p1);
  }
  return env!;
}