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