Set new coordinates for the line endpoints.
name | type | arguments | description |
---|---|---|---|
x1 | number | <optional> |
The x coordinate of the lines starting point. |
y1 | number | <optional> |
The y coordinate of the lines starting point. |
x2 | number | <optional> |
The x coordinate of the lines ending point. |
y2 | number | <optional> |
The y coordinate of the lines ending point. |
This Line object.