Class Polygon

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(points: Point[]): Polygon

Parameters

Returns

Polygon

constructor(points: Array<number>): Polygon

Parameters

  • points: Array<number>

Returns

Polygon

constructor(points?: Point[]): Polygon

Parameters

  • points?: Point[] optional

Returns

Polygon

constructor(points?: Array<number>): Polygon

Parameters

  • points?: Array<number> optional

Returns

Polygon

Properties

public points: Point[]

Methods

public clone(): Polygon

Returns

Polygon

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

Parameters

  • x: number
  • y: number

Returns

boolean