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
-
-
r1: number
-
r2: number
-
start: number
-
end: number
-
Parameters
-
x: number
-
y: number
-
r1: number
-
r2: number
-
start: number
-
end: number
Methods
contains
- contains(p: Point): boolean
-
Parameters
Returns boolean
distance
- distance(p: Point): number
-
Parameters
Returns number
split
- split(data: number[], mode?: string): Sector[]
-
Parameters
-
data: number[]
-
mode: string = 'angle'
translate
- translate(x: number, y: number): Sector