Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Polygon

Hierarchy

  • Polygon

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • points: Point[] | number[]

    Returns Polygon

  • Parameters

    • Rest ...points: Point[]

    Returns Polygon

  • Parameters

    • Rest ...points: number[]

    Returns Polygon

Properties

closed

closed: boolean

points

points: number[]

type

type: number

Methods

clone

  • Returns Polygon

close

  • close(): void
  • Returns void

contains

  • contains(x: number, y: number): boolean
  • Parameters

    • x: number
    • y: number

    Returns boolean

Generated using TypeDoc