inflated method

AABB inflated(
  1. double amount
)

Implementation

AABB inflated(double amount) {
  return AABB(
    Vec2(position.x - amount, position.y - amount),
    width: width + amount * 2,
    height: height + amount * 2,
  );
}