Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

View project on GitHub Star

Api - Polygon Class

Hierarchy

  • Polygon

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

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

Properties

paths

paths: IPathMap

Methods

Static circumscribedRadius

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

Static getPoints

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc