Class eniro.maps.Size
Defined in: Size.js.
Constructor Attributes | Constructor Name and Description |
---|---|
eniro.maps.Size(width, height)
Size holds an width/height value of an unspecified unit.
|
Method Attributes | Method Name and Description |
---|---|
equals(other)
Compare this instance with another instance.
|
|
Returns the height.
|
|
getWidth()
Returns the width.
|
Class Detail
eniro.maps.Size(width, height)
Size holds an width/height value of an unspecified unit.
Class is considered a value type.
- Parameters:
- {number} width
- The width value.
- {number} height
- The height value.
Method Detail
{boolean}
equals(other)
Compare this instance with another instance.
- Parameters:
- {eniro.maps.Size} other
- The instance to compare this instance to.
- Returns:
- {boolean} true If this instance is equal to the given one.
{number}
getHeight()
Returns the height.
- Returns:
- {number} The height.
{number}
getWidth()
Returns the width.
- Returns:
- {number} The width.