cocos2d-x
3.3
|
#include <CCGeometry.h>
Public Member Functions | |
Rect () | |
NA More... | |
Rect (float x, float y, float width, float height) | |
NA More... | |
Rect (const Rect &other) | |
NA NA More... | |
Rect & | operator= (const Rect &other) |
NA NA More... | |
void | setRect (float x, float y, float width, float height) |
NA NA More... | |
float | getMinX () const |
NA More... | |
float | getMidX () const |
return the leftmost x-value of current rect More... | |
float | getMaxX () const |
return the midpoint x-value of current rect More... | |
float | getMinY () const |
return the rightmost x-value of current rect More... | |
float | getMidY () const |
return the bottommost y-value of current rect More... | |
float | getMaxY () const |
return the midpoint y-value of current rect More... | |
bool | equals (const Rect &rect) const |
return the topmost y-value of current rect More... | |
bool | containsPoint (const Vec2 &point) const |
NA More... | |
bool | intersectsRect (const Rect &rect) const |
NA More... | |
Rect | unionWithRect (const Rect &rect) const |
NA NA More... | |
void | merge (const Rect &rect) |
Public Attributes | |
Vec2 | origin |
Size | size |
Static Public Attributes | |
static const Rect | ZERO |
Rect | ( | ) |
NA
Rect | ( | float | x, |
float | y, | ||
float | width, | ||
float | height | ||
) |
NA
bool containsPoint | ( | const Vec2 & | point | ) | const |
NA
bool equals | ( | const Rect & | rect | ) | const |
return the topmost y-value of current rect
NA
float getMaxX | ( | ) | const |
return the midpoint x-value of current rect
NA
float getMaxY | ( | ) | const |
return the midpoint y-value of current rect
NA
float getMidX | ( | ) | const |
return the leftmost x-value of current rect
NA
float getMidY | ( | ) | const |
return the bottommost y-value of current rect
NA
float getMinX | ( | ) | const |
NA
float getMinY | ( | ) | const |
return the rightmost x-value of current rect
NA
bool intersectsRect | ( | const Rect & | rect | ) | const |
NA
void merge | ( | const Rect & | rect | ) |
void setRect | ( | float | x, |
float | y, | ||
float | width, | ||
float | height | ||
) |
NA NA
Vec2 origin |
Size size |
|
static |