Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Polygon

Hierarchy

  • Polygon

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Polygon(numberOfSides: number, radius: number, firstCornerAngleInDegrees?: number, circumscribed?: boolean, data?: IProperties): Polygon
  • Parameters

    • numberOfSides: number
    • radius: number
    • Optional firstCornerAngleInDegrees: number
    • Optional circumscribed: boolean
    • Optional data: IProperties

    Returns Polygon

Properties

data

paths

paths: IPathMap

Methods

Static circumscribedRadius

  • circumscribedRadius(radius: number, angleInRadians: number): number
  • Parameters

    • radius: number
    • angleInRadians: number

    Returns number

Static getPoints

  • getPoints(numberOfSides: number, radius: number, firstCornerAngleInDegrees?: number, circumscribed?: boolean): IPoint[]
  • Parameters

    • numberOfSides: number
    • radius: number
    • Default value firstCornerAngleInDegrees: number = 0
    • Default value circumscribed: boolean = false

    Returns IPoint[]

Generated using TypeDoc