Line
Line
A representation of a Line shape.
Constructor
public Line
new Line(p1, p2)
Constructor for Line.
Parameters
p1: Vector
– The start point.p2: Vector
– The end point.
Properties
No publicly accessible properties on Line
protected p1: Vector
Description needed
protected p2: Vector
Description needed
Methods
public draw
draw(ctx) => void
Draws the Line on the canvas.
Parameters
-
ctx: CanvasRenderingContext2D
– Provides the 2D rendering context for the drawing surface of an element.
Static Methods
No static methods for Line