Link Search Menu Expand Document

Circle

circle.ts#L16

Class Circle

A circle with a given center and radius.

Implements GeoShape

constructor (c: Point, r: number): Circle

Name Type Default Description
c Point  
r number 1  

readonly Property .c : Point

Default value: ...

readonly Property .r : number

Default value: 1

readonly Property .type

Default value: 'circle'

Accessor .arc : Arc

Accessor .area : number

The area of this circle.

Accessor .circumference : number

The length of the circumference of this circle.

Method .at (t: number): Point

Name Type Default Description
t number    

Method .collision (r: Rectangle): boolean

Name Type Default Description
r Rectangle    

Method .contains (p: Point): boolean

Name Type Default Description
p Point    

Method .equals (other: Circle, tolerance: number): boolean

Name Type Default Description
other Circle    
tolerance number    

Method .project (p: Point): Point

Name Type Default Description
p Point    

Method .reflect (l: Line): Circle

Name Type Default Description
l Line    

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

Name Type Default Description
a number    
c Point  

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

Name Type Default Description
sx number    
sy number  

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

Name Type Default Description
x number    
y number  

Method .tangentAt (t: number): Line

Name Type Default Description
t number    

Method .transform (m: TransformMatrix): Circle

Name Type Default Description
m TransformMatrix    

Method .translate (p: Point): Circle

Name Type Default Description
p Point    

Copyright © 2021 Mathigon.org