35 UIRect2D(
float x,
float y,
float width,
float height );
38 float getMinX()
const;
39 float getMinY()
const;
40 float getMaxX()
const;
41 float getMaxY()
const;
47 bool contains(
const UIPoint2D& pos )
const;
48 bool contains(
float x,
float y )
const;
49 bool contains(
int x,
int y )
const;
50 bool contains(
const UIRect2D& pos )
const;
51 bool intersects(
const UIRect2D& pos )
const;
69 pos = UIPoint2D( x, y );
70 size = UISize2D( width, height );
86float UIRect2D::getMinX
96float UIRect2D::getMinY
106float UIRect2D::getMaxX
112 return pos.x + size.width;
116float UIRect2D::getMaxY
122 return pos.y + size.height;
132 return UIPoint2D( getMinX(), getMinY() );
142 return UIPoint2D( getMaxX(), getMinY() );
152 return UIPoint2D( getMinX(), getMaxY() );
162 return UIPoint2D( getMaxX(), getMaxY() );
166bool UIRect2D::contains
172 return pos.x >= this->pos.x && pos.x <= this->pos.x + size.width
173 && pos.y >= this->pos.y && pos.y <= this->pos.y + size.height;
177bool UIRect2D::contains
184 return x >= this->pos.x && x <= this->pos.x + size.width
185 && y >= this->pos.y && y <= this->pos.y + size.height;
189bool UIRect2D::contains
196 return x >= this->pos.x && x <= this->pos.x + size.width
197 && y >= this->pos.y && y <= this->pos.y + size.height;
201bool UIRect2D::contains
207 return pos.pos.x >= this->pos.x && pos.pos.x <= this->pos.x + size.width
208 && pos.pos.y >= this->pos.y && pos.pos.y <= this->pos.y + size.height;
212bool UIRect2D::intersects
Definition uipoint2d.h:25