Geometry~ Size

A size in 2D space

Constructor

new Size(width, height)

Creates a new Size
Parameters:
NameTypeDescription
widthnumberThe width
heightnumberThe height
Example
// Create a new size of (10, 10)
const size = new Size(10, 10);

Members

height :number

The height
Type:
  • number

width :number

The width
Type:
  • number