calculate points for a line with a certain thickness (either one thickness or a starting and ending thickness)
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
x1 |
number | |||||||||||
y1 |
number | |||||||||||
x2 |
number | |||||||||||
y2 |
number | |||||||||||
thickness |
number | object |
<optional> |
Properties
|
Returns:
[x1, y1, x2, y2, ... xn, yn]
- Type
- array