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: NumberParam, length: NumberParam): ALine

Draws a line at the given angle with the given length. Chain .centered() to center the line on the current position.

ParameterTypeDescription
angleNumberParamThe angle in degrees
lengthNumberParamThe line length

aLine(angle: NumberParam, 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
angleNumberParamThe angle in degrees
targetSceneObjectThe geometry to intersect with

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

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

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
angleNumberParamThe angle in degrees
lengthNumberParamThe line length