Index
Constructor Functions
Other Functions
Transform Functions
Constructor Functions
from
- from(x: number, y: number, radius: number): Circle
-
Parameters
-
x: number
-
y: number
-
radius: number
Other Functions
area
-
Parameters
Returns number
contains
-
Parameters
Returns boolean
diameter
- diameter(circle: Circle): number
-
Parameters
Returns number
equals
-
Parameters
Returns boolean
intersects
-
Parameters
Returns boolean
is
- is(value: any): value is Circle
-
Parameters
Returns value is Circle
Transform Functions
translated
- translated(circle: Circle, vector: Vector): { radius: number; x: number; y: number }
-
Parameters
Returns { radius: number; x: number; y: number }
The translated circle
-
radius: number
-
x: number
-
y: number
Creates a circle given the x, y coordinates of the center and its radius.