Class: Size

An object which contains width and height values. Size instances are frozen and cannot be modified.

Constructor

new Size(width, height)

Create a new Size instance.

Parameters

width {number}
height {number}

Methods

equalTo(that){boolean}

Returns whether two instances have the same value.

Parameters

that {Size}

Another size