diff --git a/include/math.hpp b/include/math.hpp index a6404178..9cb7cd7f 100644 --- a/include/math.hpp +++ b/include/math.hpp @@ -279,7 +279,7 @@ struct Rect { bool isEqual(Rect r) const { return pos.isEqual(r.pos) && size.isEqual(r.size); } - float getLeft() const { + float getRight() const { return pos.x + size.x; } float getBottom() const {