getArea method

double getArea()

Gets the area of this envelope.

@return the area of the envelope @return 0.0 if the envelope is null

Implementation

double getArea() {
  return getWidth() * getHeight();
}