aLine()
Draws a line at the given angle with the given length.
Chain .centered() to center the line on the current position.
Returns: ALine
Signatures
aLine(angle: number, length: number): ALine
Draws a line at the given angle with the given length.
Chain .centered() to center the line on the current position.
| Parameter | Type | Description |
|---|---|---|
angle | number | The angle in degrees |
length | number | The line length |
aLine(angle: number, target: SceneObject): ALine
Draws a line at the given angle that ends where it intersects the target geometry. The nearest intersection along the line's direction (in either sign) is used.
| Parameter | Type | Description |
|---|---|---|
angle | number | The angle in degrees |
target | SceneObject | The geometry to intersect with |
aLine(targetPlane: SceneObject | PlaneLike, angle: number, length: number): ALine
Draws a line at the given angle on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
angle | number | The angle in degrees |
length | number | The line length |