Skip to main content

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.

ParameterTypeDescription
anglenumberThe angle in degrees
lengthnumberThe 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.

ParameterTypeDescription
anglenumberThe angle in degrees
targetSceneObjectThe geometry to intersect with

aLine(targetPlane: SceneObject | PlaneLike, angle: number, length: number): ALine

Draws a line at the given angle on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
anglenumberThe angle in degrees
lengthnumberThe line length