Constructor
new Point(position, lengthopt, styleopt)
Create a Point.
Points are constructed from a Vector position, a size, and a style.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position |
Vector | The position of the Point as a Vector. |
||
length |
Number |
<optional> |
0.25 | The radius or length of the drawn Point. |
style |
string |
<optional> |
"circle" | Shape type ("circle" or "line"). |
Classes
Methods
toSVGElement() → {SVGElement}
Converts the Point to an SVGElement.
This method is used by Plot#add.
Returns:
- Type
- SVGElement