Class: Size3

Size3(width, height, depth)

A size that has a width, a height and a depth.

Constructor

new Size3(width, height, depth)

Creates a new Size3.
Parameters:
Name Type Default Description
width Number 0 The width of the size.
height Number 0 The height of the size.
depth Number 0 The depth of the size.
Source:

Methods

clone() → {Size3}

Creates a clone of the size.
Source:
Returns:
The cloned size.
Type
Size3

copy(size) → {Size3}

Copies the width, the height and the depth of another size.
Parameters:
Name Type Description
size Size3 The size to copy.
Source:
Returns:
The size.
Type
Size3

equals(size) → {Boolean}

Compares the properties to another size.
Parameters:
Name Type Description
size Size3 The size to compare to.
Source:
Returns:
A value indicating whether the properties of the sizes are equal.
Type
Boolean

set(width, height) → {Size2}

Sets the width, the height and the depth of the size.
Parameters:
Name Type Description
width Number The width to set.
height Number The height to set.
Source:
Returns:
The size.
Type
Size2