Hey guys! Just got an issue with rect class.... Can someone explain this please?
Commit:
commit 082a928555125e37cc52a80c11cf286f0b03dee5
Author: LaurentGom <LaurentGom@4e206d99-4929-0410-ac5d-dfc041789085>
Date: Fri Apr 9 13:04:49 2010 +0000
*important* sf::Rect now uses Width/Height instead of Right/Bottom
Removed Offset, GetSize and GetCenter functions from sf::Rect
Added a sf::Rect constructor taking two Vector2 parameters
Updated the API documentation of the sf::Rect class
template <typename T>
bool Rect<T>::Contains(T x, T y) const
{
- return (x >= Left) && (x <= Right) && (y >= Top) && (y <= Bottom);
+ return (x >= Left) && (x < Left + Width) && (y >= Top) && (y < Top + Height);
}
Why changed "<=" to "<"?