Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Sector

Index

Constructors

constructor

  • new Sector(p: Point, r1: number, r2: number, start: number, end: number): Sector
  • new Sector(x: number, y: number, r1: number, r2: number, start: number, end: number): Sector
  • Parameters

    • p: Point
    • r1: number
    • r2: number
    • start: number
    • end: number

    Returns Sector

  • Parameters

    • x: number
    • y: number
    • r1: number
    • r2: number
    • start: number
    • end: number

    Returns Sector

Properties

end

end: number

p

r1

r1: number

r2

r2: number

start

start: number

Methods

area

  • area(): number
  • Returns number

bounds

center

closest

contains

  • contains(p: Point): boolean
  • Parameters

    Returns boolean

copy

distance

  • distance(p: Point): number
  • Parameters

    Returns number

polygon

  • Parameters

    • n: number

    Returns Polygon

rotate

scale

split

  • split(data: number[], mode?: string): Sector[]
  • Parameters

    • data: number[]
    • mode: string = 'angle'

    Returns Sector[]

translate

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

    • x: number
    • y: number

    Returns Sector