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. |
Methods
clone() → {Size3}
Creates a clone of the size.
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. |
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. |
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. |
Returns:
The size.
- Type
- Size2