Link Search Menu Expand Document

Arc

arc.ts#L15

Class Arc

An arc segment of a circle, with given center, start point and angle.

Implements GeoShape

constructor (c: Point, start: Point, angle: number): Arc

Name Type Default Description
c Point    
start Point    
angle number    

readonly Property .angle : number

readonly Property .c : Point

readonly Property .start : Point

readonly Property .type : string

Default value: 'arc'

Accessor .center : Point

Accessor .end : Point

Accessor .major : this

Accessor .minor : this

Accessor .radius : number

Accessor .startAngle : number

Method .at (t: number): Point

Name Type Default Description
t number    

Method .contains (p: Point): boolean

Name Type Default Description
p Point    

Method .contract (p: number): Arc

Name Type Default Description
p number    

Method .equals (): boolean

Method .project (p: Point): Point

Name Type Default Description
p Point    

Method .reflect (l: Line): Arc

Name Type Default Description
l Line    

Method .rotate (a: number, c: Point): Arc

Rotates this arc by a given angle (in radians), optionally around point c.

Name Type Default Description
a number    
c Point  

Method .scale (sx: number, sy: number): Arc

Name Type Default Description
sx number    
sy number  

Method .shift (x: number, y: number): Arc

Name Type Default Description
x number    
y number  

Method .transform (m: TransformMatrix): Arc

Name Type Default Description
m TransformMatrix    

Method .translate (p: Point): Arc

Name Type Default Description
p Point    
arc.ts#L113

Class Sector

Extends Arc

readonly Property .type

Default value: 'sector'

Method .contains (p: Point): boolean

Name Type Default Description
p Point    

Copyright © 2021 Mathigon.org