getPerimeter method

double getPerimeter()

Gets the perimeter length

Implementation

double getPerimeter() {
  return 2.0 * (upperBound.x - lowerBound.x + upperBound.y - lowerBound.y);
}