| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
Rect类 参考 Data Structures
#include
| ## Public 成员函数 | |
| Rect () | |
| NA 更多… | |
| Rect (float x, float y, float width, float height) | |
| NA 更多… | |
| Rect (const Rect &other) | |
| NA NA 更多… | |
| Rect & | operator= (const Rect &other) |
| NA NA 更多… | |
| void | setRect (float x, float y, float width, float height) |
| NA NA 更多… | |
| float | getMinX () const |
| NA 更多… | |
| float | getMidX () const |
| 返回rect的最左的x值 更多… | |
| float | getMaxX () const |
| 返回rect的中点的x值 更多… | |
| float | getMinY () const |
| 返回rect的最右的x值 更多… | |
| float | getMidY () const |
| 返回rect的底部的y值 更多… | |
| float | getMaxY () const |
| 返回rect的中部的y值 更多… | |
| bool | equals (const Rect &rect) const |
| 返回rect的顶部的y值 更多… | |
| bool | containsPoint (const Vec2 &point) const |
| NA 更多… | |
| bool | intersectsRect (const Rect &rect) const |
| NA 更多… | |
| Rect | unionWithRect (const Rect &rect) const |
| NA NA 更多… | |
| ## Public 属性 | |
| Vec2 | origin |
| Size | size |
| ## 静态 Public 属性 | |
| static const Rect | ZERO |
构造及析构函数说明
| Rect | ( | ) |
NA
| Rect | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height | ||
| ) |
NA
| Rect | ( | const Rect & | other | ) |
NA NA
成员函数说明
| bool containsPoint | ( | const Vec2 & | point | ) | const |
NA
| bool equals | ( | const Rect & | rect | ) | const |
返回rect的顶部的y值
NA
| float getMaxX | ( | ) | const |
返回rect的中点的x值
NA
| float getMaxY | ( | ) | const |
返回rect的中部的y值
NA
| float getMidX | ( | ) | const |
返回rect的最左的x值
NA
| float getMidY | ( | ) | const |
返回rect的底部的y值
NA
| float getMinX | ( | ) | const |
NA
| float getMinY | ( | ) | const |
返回rect的最右的x值
NA
| bool intersectsRect | ( | const Rect & | rect | ) | const |
NA
| Rect& operator= | ( | const Rect & | other | ) |
NA NA
| void setRect | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height | ||
| ) |
NA NA
| Rect unionWithRect | ( | const Rect & | rect | ) | const |
NA NA
类成员变量说明
| Vec2 origin |
| Size size |
| static |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/math/CCGeometry.h

