Skip to main content

hLine()

Draws a horizontal line of the given distance.

Returns: Geometry

Signatures

hLine(distance: number, centered?: boolean): Geometry

Draws a horizontal line of the given distance.

ParameterTypeDescription
distancenumberThe line length
centeredbooleanWhether to center the line on the current position (optional)

hLine(start: Point2DLike, distance: number, centered?: boolean): Geometry

Draws a horizontal line from a start point.

ParameterTypeDescription
startPoint2DLikeThe start point
distancenumberThe line length
centeredbooleanWhether to center the line on the start point (optional)
note

All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.