Rectangle

Properties

  • x (float)
  • y (float)
  • width (float)
  • height (float)

Constructor

new Rectangle( x?: float, y?: float, width?: float, height?: float, ): Rectangle

Parameters

  • x (float, optional, default: 0)
  • y (float, optional, default: 0)
  • width (float, optional, default: 0)
  • height (float, optional, default: 0)

Instance Methods

Returns

  • float

left(): float

Returns

  • float

top(): float

Returns

  • float

bottom(): float

Returns

  • float

center(): Vector

Returns

copy(): Rectangle

Returns