#include <CCGeometry.h>
Public Member Functions | |
Size () | |
Size (float width, float height) | |
Size (const Size &other) | |
Size (const Point &point) | |
Size & | operator= (const Size &other) |
Size & | operator= (const Point &point) |
Size | operator+ (const Size &right) const |
Size | operator- (const Size &right) const |
Size | operator* (float a) const |
Size | operator/ (float a) const |
void | setSize (float width, float height) |
bool | equals (const Size &target) const |
Public Attributes | |
float | width |
float | height |
Static Public Attributes | |
static const Size | ZERO |
Size | ( | ) |
Size | ( | float | width, |
float | height | ||
) |
bool equals | ( | const Size & | target) | const |
Size operator* | ( | float | a) | const |
Size operator/ | ( | float | a) | const |
void setSize | ( | float | width, |
float | height | ||
) |
float height |
float width |
|
static |