Class: Point

Point(position, lengthopt, styleopt)

Class representing a Point.

A Point is a small plottable shape that is drawn as either a Circle by default, or a very short Line.

Points can be instantiated with a vector position.

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").

Source:

Classes

Point

Methods

toSVGElement() → {SVGElement}

Converts the Point to an SVGElement.

This method is used by Plot#add.

Source:
Returns:
Type
SVGElement