Home > decentraland-ecs > Size > constructor
Creates a Size object from the given width and height (floats).
Signature:
constructor(width: number, height: number);
Parameter | Type | Description |
---|---|---|
width |
number |
width of the new size |
height |
number |
height of the new size |