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 - angle Namespace

Index

Functions

mirror

  • mirror(angleInDegrees: number, mirrorX: boolean, mirrorY: boolean): number
  • Mirror an angle on either or both x and y axes.

    Parameters

    • angleInDegrees: number

      The angle to mirror.

    • mirrorX: boolean

      Boolean to mirror on the x axis.

    • mirrorY: boolean

      Boolean to mirror on the y axis.

    Returns number

    Mirrored angle.

noRevolutions

  • noRevolutions(angleInDegrees: number): number

ofArcEnd

ofArcMiddle

  • ofArcMiddle(arc: IPathArc, ratio?: number): number
  • Get the angle in the middle of an arc's start and end angles.

    Parameters

    • arc: IPathArc

      An arc path object.

    • Default value ratio: number = 0.5

      Optional number between 0 and 1 specifying percentage between start and end angles. Default is .5

    Returns number

    Middle angle of arc.

ofArcSpan

ofChainLinkJoint

ofLineInDegrees

ofPointInDegrees

  • ofPointInDegrees(origin: IPoint, pointToFindAngle: IPoint): number

ofPointInRadians

  • ofPointInRadians(origin: IPoint, pointToFindAngle: IPoint): number

toDegrees

  • toDegrees(angleInRadians: number): number

toRadians

  • toRadians(angleInDegrees: number): number

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