deflated method

AABB deflated(
  1. double amount
)

Implementation

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