Constructor
new Line(x1opt, y1opt, x2opt, y2opt)
Creates a line with a start and an end point.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x1 |
integer |
<optional> |
0 | |
y1 |
integer |
<optional> |
0 | |
x2 |
integer |
<optional> |
0 | |
y2 |
integer |
<optional> |
0 |
Methods
setTo(xopt, yopt)
Sets the line up.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
integer |
<optional> |
0 | |
y |
integer |
<optional> |
x |