--- layout: posts title: Api - Arc Class ---

Class for arc path.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

  • new Arc(origin: IPoint, radius: number, startAngle: number, endAngle: number): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, radius: number, largeArc: boolean, clockwise: boolean): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, clockwise?: boolean): Arc
  • new Arc(pointA: IPoint, pointB: IPoint, pointC: IPoint): Arc
  • Class for arc path, created from origin point, radius, start angle, and end angle.

    Parameters

    • origin: IPoint

      The center point of the arc.

    • radius: number

      The radius of the arc.

    • startAngle: number

      The start angle of the arc.

    • endAngle: number

      The end angle of the arc.

    Returns Arc

  • Class for arc path, created from 2 points, radius, large Arc flag, and clockwise flag.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • radius: number

      The radius of the arc.

    • largeArc: boolean

      Boolean flag to indicate clockwise direction.

    • clockwise: boolean

      Boolean flag to indicate clockwise direction.

    Returns Arc

  • Class for arc path, created from 2 points and optional boolean flag indicating clockwise.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • Optional clockwise: boolean

      Boolean flag to indicate clockwise direction.

    Returns Arc

  • Class for arc path, created from 3 points.

    Parameters

    • pointA: IPoint

      First end point of the arc.

    • pointB: IPoint

      Second end point of the arc.

    • pointC: IPoint

      Second end point of the arc.

    Returns Arc

Properties

endAngle

endAngle: number

origin

origin: IPoint

radius

radius: number

startAngle

startAngle: number

type

type: string

Generated using TypeDoc