Circle

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

Method .transform (m: TransformMatrix): Circle

Name Type Default Description
m TransformMatrix    

Method .translate (p: SimplePoint): Circle

Name Type Default Description
p SimplePoint    

Copyright © 2024 Mathigon.org