Constructor
new RoundedLine(x1opt, y1opt, x2opt, y2opt, widthopt)
- Source:
- Implements:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x1 |
number |
<optional> |
0
|
The x1 offset of the line. |
y1 |
number |
<optional> |
0
|
The y1 offset of the line. |
x2 |
number |
<optional> |
1
|
The x2 offset of the line. |
y2 |
number |
<optional> |
1
|
The y2 offset of the line. |
width |
number |
<optional> |
1
|
The width of the line. |
Members
width :number
- Description:
- The width of the line.
- Source:
- Default Value:
- 1
The width of the line.
Type:
- number
x1 :number
- Description:
- The x1 coordinate of the line.
- Source:
- Default Value:
- 0
The x1 coordinate of the line.
Type:
- number
x2 :number
- Description:
- The x2 coordinate of the line.
- Source:
- Default Value:
- 1
The x2 coordinate of the line.
Type:
- number
y1 :number
- Description:
- The y1 coordinate of the line.
- Source:
- Default Value:
- 0
The y1 coordinate of the line.
Type:
- number
y2 :number
- Description:
- The y1 coordinate of the line.
- Source:
- Default Value:
- 1
The y1 coordinate of the line.
Type:
- number
Methods
contains(point) → {boolean}
- Description:
- Determines if a point is inside the line.
- Source:
- Implements:
- See:
Parameters:
Name | Type | Description |
---|---|---|
point |
module:shared.Point2D | The point to test. |
Returns:
true if the point is inside the line, false otherwise.
- Type
- boolean