Skip to main content

Class: Circle

components.Circle

Represents a circle.

Constructors#

constructor#

• new Circle(x, y, radius?)

Creates a new circle at the specified coordinates, with a default radius of 0.

Parameters#

NameTypeDefault value
xnumberundefined
ynumberundefined
radiusnumber0

Defined in#

components/circle.ts:18

Properties#

radius#

• radius: number

The radius of the circle.

defaultvalue 0

Defined in#

components/circle.ts:18


x#

• x: number

The x-coordinate of the circle.

Defined in#

components/circle.ts:8


y#

• y: number

The y-coordinate of the circle.

Defined in#

components/circle.ts:12


zero#

â–ª Static Readonly zero: Circle

Defined in#

components/circle.ts:29