point1(x, [y])
Class: Line.
Description:
Sets or gets the first point of the line.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number | Object |
X coordinate of the point, or an object with X and Y coordinates {x: number, y: number}. |
|
|
number |
Y coordinate of the point (required only if |
Returns:
If called without parameters, returns current point; otherwise returns this Line shape for chaining.
