Class Rectangle

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(x?: number, y?: number, width?: number, height?: number): Rectangle

Parameters

  • x?: number optional
  • y?: number optional
  • width?: number optional
  • height?: number optional

Returns

Rectangle

Properties

public height: number

public width: number

public x: number

public y: number

Methods

public clone(): Rectangle

Returns

Rectangle

public copy(rectangle: Rectangle): Rectangle

Parameters

Returns

Rectangle

public initialize(x?: number, y?: number, width?: number, height?: number): Rectangle

Parameters

  • x?: number optional
  • y?: number optional
  • width?: number optional
  • height?: number optional

Returns

Rectangle

public toString(): string

Returns

string