getWidth method

double getWidth()

Returns the width of this rectangle.

Implementation

double getWidth() {
  return right - left;
}