Class Ellipse

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(x: number, y: number, width: number, height: number): Ellipse

Parameters

  • x: number
  • y: number
  • width: number
  • height: number

Returns

Ellipse

Properties

public height: number

public width: number

public x: number

public y: number

Methods

public clone(): Ellipse

Returns

Ellipse

public contains(x: number, y: number): boolean

Parameters

  • x: number
  • y: number

Returns

boolean

public getBounds(): Rectangle

Returns

Rectangle