Arc

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 .circle : Circle

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 .offset (p: Point): number

Name Type Default Description
p Point    

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 .toString (): string

Method .transform (m: TransformMatrix): Arc

Name Type Default Description
m TransformMatrix    

Method .translate (p: SimplePoint): Arc

Name Type Default Description
p SimplePoint    

Class Sector

Extends Arc

readonly Property .type

Default value: 'sector'

Method .contains (p: Point): boolean

Name Type Default Description
p Point    

Method .toString (): string


Copyright © 2024 Mathigon.org