Rect.inflate should be const

This commit is contained in:
Noel Berry 2020-12-05 13:49:30 -08:00
parent e345ad66d5
commit f736cb78f9

View File

@ -75,7 +75,7 @@ namespace Blah
return Vec2::zero;
}
Rect inflate(float amount) { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); }
Rect inflate(float amount) const { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); }
/*
Rect Sectors: