hLine()
Draws a horizontal line of the given distance.
Chain .centered() to center the line on the current position.
Returns: HLine
Signatures
hLine(distance: number): HLine
Draws a horizontal line of the given distance.
Chain .centered() to center the line on the current position.
| Parameter | Type | Description |
|---|---|---|
distance | number | The line length |
hLine(target: SceneObject): HLine
Draws a horizontal line that ends where it intersects the target geometry. The nearest intersection (in either direction along the X axis) is used.
| Parameter | Type | Description |
|---|---|---|
target | SceneObject | The geometry to intersect with |
hLine(start: Point2DLike, distance: number): HLine
Draws a horizontal line from a start point.
Chain .centered() to center the line on the start point.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | The start point |
distance | number | The line length |
hLine(start: Point2DLike, target: SceneObject): HLine
Draws a horizontal line from a start point that ends where it intersects the target geometry. The nearest intersection (in either direction along the X axis) is used.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | The start point |
target | SceneObject | The geometry to intersect with |
hLine(targetPlane: SceneObject | PlaneLike, distance: number): HLine
Draws a horizontal line on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
distance | number | The line length |