Public Member Functions | |
Constructor / Destructor | |
| CP_Size () | |
| Constructor. | |
| CP_Size (float inWidth, float inHeight) | |
| CP_Size (const CP_Size &inFloatSize) | |
| ~CP_Size () | |
| Destructor. | |
Getters | |
| float | Width () const |
| float | Height () const |
Comparers | |
| bool | operator== (const CP_Size &inSize) const |
| bool | operator!= (const CP_Size &inSize) const |
| bool | operator>= (const CP_Size &inSize) const |
| bool | operator<= (const CP_Size &inSize) const |
| bool | operator> (const CP_Size &inSize) |
| bool | operator< (const CP_Size &inSize) |
Math | |
| CP_Size & | operator+= (const CP_Size &inSize) |
| CP_Size & | operator-= (const CP_Size &inSize) |
| CP_Size & | operator *= (const CP_Size &inSize) |
| CP_Size & | operator/= (const CP_Size &inSize) |
| CP_Size | operator+ (const CP_Size &inSize) const |
| CP_Size | operator- (const CP_Size &inSize) const |
| CP_Size | operator * (const CP_Size &inSize) const |
| CP_Size | operator/ (const CP_Size &inSize) const |
| CP_Size & | operator= (const CP_Size &) |
| CP_Size | operator- () const |
Setters | |
| void | SetWidth (float inWidth) |
| void | SetHeight (float inHeight) |
| void | Set (float inWidth, float inHeight) |
Public Attributes | |
| float | fWidth |
| float | fHeight |
A size represents a measurement of both width and height.
|
|
Constructor. This creates a size with all coordinates at 0.
|
|
||||||||||||
|
Constructor. This creates a size with the passed in measurements.
|
|
|
Copy constructor. Sets the measurements of this object from the passed in inSize.
|
|
|
Destructor.
|
|
|
Return the width data member.
|
|
|
Return the height data member.
|
|
|
Equality operator. Returns true if this size is the same as the passed in size.
|
|
|
Inequality operator. Returns true if this size is not the same as the passed in size.
|
|
|
Greater than or equal to operator. Returns true if this size is greater than or equal to the passed in size.
|
|
|
Less than or equal to operator. Returns true if this size is less than or equal to the passed in size.
|
|
|
Greater than operator. Returns true if this size is greater than the passed in size.
|
|
|
Less than operator. Returns true if this size is less than the passed in size.
|
|
|
Plus equals operator. Adds the width and height contained in the passed in CP_Size to the width and height of this object.
|
|
|
Minus equals operator. Subtracts the width and height contained in the passed in CP_Size from the width and height of this object.
|
|
|
Times equals operator. Multiples the width and height contained in the passed in CP_Size to the width and height of this object.
|
|
|
Divide equals operator. Divides the width and height contained in the passed in CP_Size to the width and height of this object.
|
|
|
Addition operator. Adds the width and height contained in the passed in CP_Size to the width and height of this object, and returns a new CP_Size.
|
|
|
Subtraction operator. Subtracts the width and height contained in the passed in CP_Size to the width and height of this object, and returns a new CP_Size.
|
|
|
Multiplication operator. Multiplies the width and height contained in the passed in CP_Size to the width and height of this object, and returns a new CP_Size.
|
|
|
Division operator. Divides the width and height contained in the passed in CP_Size to the width and height of this object, and returns a new CP_Size.
|
|
|
Assignment operator. Assigns the width and height of this object from the passed in CP_Size object.
|
|
|
Negation operator. Returns a negative version of this size.
|
|
|
|
|
|
|
|
||||||||||||
|
Sets the width and height from the passed in parameters.
|
|
|
|
|
|
Width measurement. |
1.4.0