perimeter static method

double perimeter(
  1. AABB a
)

Implementation

static double perimeter(AABB a) {
  return 2.0 * (a.width + a.height);
}