new Line(x1, y1, x2, y2)
Creates a new Line object with a start and an end point.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x1 | number | <optional> | 0 | The x coordinate of the start of the line. |
y1 | number | <optional> | 0 | The y coordinate of the start of the line. |
x2 | number | <optional> | 0 | The x coordinate of the end of the line. |
y2 | number | <optional> | 0 | The y coordinate of the end of the line. |
- Source code: geom/Line.js (Line 17)
Please login to continue.