maxExtent method

double maxExtent()

Gets the maximum extent of this envelope across both dimensions.

@return the maximum extent of this envelope

Implementation

double maxExtent() {
  if (isNull()) return 0.0;
  double w = getWidth();
  double h = getHeight();
  if (w > h) return w;
  return h;
}