#include <CCGeometry.h>
| Rect |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
width, |
|
|
float |
height |
|
) |
| |
| local Rect |
( |
local |
x, |
|
|
local |
y, |
|
|
local |
width, |
|
|
local |
height |
|
) |
| |
| bool containsPoint |
( |
const Point & |
point) | |
const |
| local containsPoint |
( |
local |
point) | |
|
| bool equals |
( |
const Rect & |
rect) | |
const |
return the topmost y-value of current rect
| local equals |
( |
local |
rect) | |
|
return the topmost y-value of current rect
return the midpoint x-value of current rect
return the midpoint x-value of current rect
return the midpoint y-value of current rect
return the midpoint y-value of current rect
return the leftmost x-value of current rect
return the leftmost x-value of current rect
return the bottommost y-value of current rect
return the bottommost y-value of current rect
return the rightmost x-value of current rect
return the rightmost x-value of current rect
| bool intersectsRect |
( |
const Rect & |
rect) | |
const |
| local intersectsRect |
( |
local |
rect) | |
|
| void setRect |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
width, |
|
|
float |
height |
|
) |
| |
| Rect unionWithRect |
( |
const Rect & |
rect) | |
const |
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x-develop/cocos2dx/cocoa/CCGeometry.h