Constructor
new Circle(x, y, radius, options)
Create a circle.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x |
number | The x value of the centre. |
||||||||||||||||||||
y |
number | The y value of the centre. |
||||||||||||||||||||
radius |
number | The radius. |
||||||||||||||||||||
options |
Object |
Properties
|
Classes
Methods
toSVGElement() → {SVGElement}
Returns:
- Type
- SVGElement
(static) fromVector(vector, radius) → {Circle}
Create a circle from a Vector object and a radius.
Parameters:
Name | Type | Description |
---|---|---|
vector |
Vector | The position of the centre of the circle. |
radius |
number | The radius. |
Returns:
- Type
- Circle