Improve argument names of CUIRect::Inside

This commit is contained in:
Robert Müller 2022-07-08 18:02:26 +02:00
parent b50309dd5c
commit 49164dfcdf
2 changed files with 3 additions and 3 deletions

View file

@ -162,7 +162,7 @@ void CUIRect::HMargin(float Cut, CUIRect *pOtherRect) const
pOtherRect->h = r.h - 2 * Cut;
}
bool CUIRect::Inside(float x_, float y_) const
bool CUIRect::Inside(float PointX, float PointY) const
{
return x_ >= this->x && x_ < this->x + this->w && y_ >= this->y && y_ < this->y + this->h;
return PointX >= x && PointX < x + w && PointY >= y && PointY < y + h;
}

View file

@ -95,7 +95,7 @@ public:
*/
void HMargin(float Cut, CUIRect *pOtherRect) const;
bool Inside(float x_, float y_) const;
bool Inside(float PointX, float PointY) const;
};
#endif