Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Polygon

Index

Constructors

constructor

Properties

vertices

vertices: Point[]

Methods

add

area

  • area(): number
  • Returns number

bounds

centroid

circumference

  • circumference(): number
  • Returns number

clear

  • clear(): void
  • Returns void

clip

clockwise

  • clockwise(): boolean
  • Returns boolean

closest

contains

convex

  • convex(): boolean
  • Returns boolean

distance

  • distance(p: Point): number
  • Parameters

    Returns number

edges

reverse

rotate

scale

translate

  • translate(x: any, y: any): Polygon
  • Parameters

    • x: any
    • y: any

    Returns Polygon