X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmath%2Frect.hpp;h=1fd5dcbf20ac7ea2bfbdd03daebededc47698827;hb=7e1ffbded538860c7f647d4597ee3dcb1f0917ca;hp=79e422af03eaa411688ebf29d07c0a35287f5c86;hpb=2892ebda09d24c977547159e34abf0244884b89e;p=supertux.git diff --git a/src/math/rect.hpp b/src/math/rect.hpp index 79e422af0..1fd5dcbf2 100644 --- a/src/math/rect.hpp +++ b/src/math/rect.hpp @@ -25,8 +25,8 @@ /** This class represents a rectangle. * (Implementation Note) We're using upper left and lower right point instead of - * upper left and width/height here, because that makes the collision dectection - * a little bit efficienter. + * upper left and width/height here, because that makes the collision detection + * a little bit more efficient. */ class Rect { @@ -83,7 +83,7 @@ public: { set_width(width); set_height(height); - } + } Vector get_size() { return Vector(get_width(), get_height()); @@ -108,8 +108,8 @@ public: return true; } - - // leave these 2 public to safe the headaches of set/get functions for such + + // leave these two public to save the headaches of set/get functions for such // simple things :) /// upper left edge @@ -119,4 +119,3 @@ public: }; #endif -