kcl

angledLine

Draw a line segment relative to the current origin using the polar measure of some angle and distance.

angledLine(
  data: AngledLineData,
  sketch: Sketch,
  tag?: TagDeclarator,
): Sketch

Arguments

NameTypeDescriptionRequired
dataAngledLineDataData to draw an angled line.Yes
sketchSketchYes
tagTagDeclaratorNo

Returns

Sketch

Examples

exampleSketch = startSketchOn(XZ)
  |> startProfileAt([0, 0], %)
  |> yLine(endAbsolute = 15)
  |> angledLine({ angle = 30, length = 15 }, %)
  |> line(end = [8, -10])
  |> yLine(endAbsolute = 0)
  |> close()

example = extrude(exampleSketch, length = 10)

Rendered example of angledLine 0