getWidth method

double getWidth()

Returns the difference between the maximum and minimum x values.

@return max x - min x, or 0 if this is a null Envelope

Implementation

double getWidth() {
  if (isNull()) {
    return 0;
  }
  return _maxx - _minx;
}