class Size
Creates a Size object from the passed width and height (floats).
| Name | Type | Description | |
|---|---|---|---|
| width | number | ||
| height | number |
Returns the surface of the Size : width * height (float).
Returns the string "Size"
Returns the Size hash code.
Updates the current size from the passed one.
Returns the updated Size.
| Name | Type | Description | |
|---|---|---|---|
| src | Size |
Updates in place the current Size from the passed floats.
Returns the updated Size.
| Name | Type | Description | |
|---|---|---|---|
| width | number | ||
| height | number |
Updates in place the current Size from the passed floats.
Returns the updated Size.
| Name | Type | Description | |
|---|---|---|---|
| width | number | ||
| height | number |
Returns a new Size set with the multiplication result of the current Size and the passed floats.
| Name | Type | Description | |
|---|---|---|---|
| w | number | ||
| h | number |
Returns a new Size copied from the passed one.
Boolean : True if the current Size and the passed one width and height are strictly equal.
| Name | Type | Description | |
|---|---|---|---|
| other | Size |
Returns a new Size set to (0.0, 0.0)
Returns a new Size set as the addition result of the current Size and the passed one.
| Name | Type | Description | |
|---|---|---|---|
| otherSize | Size |
Returns a new Size set as the subtraction result of the passed one from the current Size.
| Name | Type | Description | |
|---|---|---|---|
| otherSize | Size |
Returns a new Size set at the linear interpolation "amount" between "start" and "end".
| Name | Type | Description | |
|---|---|---|---|
| start | Size | ||
| end | Size | ||
| amount | number |