This object represents a size in a 2D space.
Constructor function.
var myObject = new Size();
var myObject = new Size(otherSize);
var myObject = new Size(width, height);
Create a Size representing a zero size.
var myObject = new Size();
Create a Size representing a copy of otherSize.
var myObject = new Size(otherSize);
Create a Size representing the (50;75) size.
var myObject = new Size(50, 75);
Returns a copy of this Size.
myObject.clone();
var copyOfMyObject = myObject.clone();
Returns true if this Size and another are referencing the same size.
myObject.equals(other);
if(myFirstObject.equals(mySecondObject)) //Do something
Returns a string representing this Size.
myObject.toString();
Console.print(myObject.toString());
This method is automatically called when trying to convert a Size to a string.
Sets the width of this Size.
myObject.setWidth(width);
Sets the height of this Size.
myObject.setHeight(height);
Returns the width of this Size.
myObject.width();
Returns the height of this Size.
myObject.height();
The width of this Size. (integer)
myObject.width = 50; Console.print(myObject.width);
The height of this Size. (integer)
myObject.height = 50; Console.print(myObject.height);