Class: LinePrimitive

LinePrimitive()

Primitive to create a line.

Constructor

new LinePrimitive()

Source:

Classes

LinePrimitive
LinePrimitive

Methods

end(x, y) → {LinePrimitive}

Sets the endpoint of the line.
Parameters:
Name Type Description
x number the x coordinate
y number the y coordinate
Source:
Returns:
- itself
Type
LinePrimitive

end(x, y) → {LinePrimitive}

Sets the endpoint of the line.
Parameters:
Name Type Description
x number the x coordinate
y number the y coordinate
Source:
Returns:
- itself
Type
LinePrimitive

points(xs, ys, xe, ye) → {LinePrimitive}

Specify the start and end points of the line.
Parameters:
Name Type Description
xs number start point x coordinate
ys number start point y coordinate
xe number end point x coordinate
ye number end point y coordinate
Source:
Returns:
Type
LinePrimitive

points(xs, ys, xe, ye) → {LinePrimitive}

Specify the start and end points of the line.
Parameters:
Name Type Description
xs number start point x coordinate
ys number start point y coordinate
xe number end point x coordinate
ye number end point y coordinate
Source:
Returns:
Type
LinePrimitive

start(x, y) → {LinePrimitive}

The start point of the line, shorthand for xy()
Parameters:
Name Type Description
x number the x coordiante
y number the y coordiante
Source:
Returns:
- itself
Type
LinePrimitive

start(x, y) → {LinePrimitive}

The start point of the line, shorthand for xy()
Parameters:
Name Type Description
x number the x coordiante
y number the y coordiante
Source:
Returns:
- itself
Type
LinePrimitive

LinePrimitiveLinePrimitive()

Primitive to create a line.

Constructor

new LinePrimitive()

Source:

Classes

LinePrimitive
LinePrimitive

Methods

end(x, y) → {LinePrimitive}

Sets the endpoint of the line.
Parameters:
Name Type Description
x number the x coordinate
y number the y coordinate
Source:
Returns:
- itself
Type
LinePrimitive

end(x, y) → {LinePrimitive}

Sets the endpoint of the line.
Parameters:
Name Type Description
x number the x coordinate
y number the y coordinate
Source:
Returns:
- itself
Type
LinePrimitive

points(xs, ys, xe, ye) → {LinePrimitive}

Specify the start and end points of the line.
Parameters:
Name Type Description
xs number start point x coordinate
ys number start point y coordinate
xe number end point x coordinate
ye number end point y coordinate
Source:
Returns:
Type
LinePrimitive

points(xs, ys, xe, ye) → {LinePrimitive}

Specify the start and end points of the line.
Parameters:
Name Type Description
xs number start point x coordinate
ys number start point y coordinate
xe number end point x coordinate
ye number end point y coordinate
Source:
Returns:
Type
LinePrimitive

start(x, y) → {LinePrimitive}

The start point of the line, shorthand for xy()
Parameters:
Name Type Description
x number the x coordiante
y number the y coordiante
Source:
Returns:
- itself
Type
LinePrimitive

start(x, y) → {LinePrimitive}

The start point of the line, shorthand for xy()
Parameters:
Name Type Description
x number the x coordiante
y number the y coordiante
Source:
Returns:
- itself
Type
LinePrimitive