Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Arc

Index

Constructors

constructor

  • new Arc(p: Point, r: number, start: number, end: number): Arc
  • new Arc(x: number, y: number, r: number, start: number, end: number): Arc
  • Parameters

    • p: Point
    • r: number
    • start: number
    • end: number

    Returns Arc

  • Parameters

    • x: number
    • y: number
    • r: number
    • start: number
    • end: number

    Returns Arc

Properties

end

end: number

p

r

r: number

start

start: number

Methods

bounds

closest

contains

  • contains(v: Vector): boolean
  • Parameters

    Returns boolean

copy

distance

  • distance(p: Point): number
  • Parameters

    Returns number

length

  • length(): number
  • Returns number

lerp

  • lerp(a: Arc, t: number): Arc
  • Parameters

    • a: Arc
    • t: number

    Returns Arc

middle

point

  • point(t: number): Point
  • Parameters

    • t: number

    Returns Point

polyline

rotate

  • rotate(a: number): Arc
  • rotate(a: number, p: Point): Arc
  • Parameters

    • a: number

    Returns Arc

  • Parameters

    Returns Arc

scale

  • scale(s: number): Arc
  • scale(s: number, p: Point): Arc
  • Parameters

    • s: number

    Returns Arc

  • Parameters

    Returns Arc

split

  • split(data: number[]): Arc[]
  • Parameters

    • data: number[]

    Returns Arc[]

translate

  • translate(x: number, y: number): Arc
  • Parameters

    • x: number
    • y: number

    Returns Arc