kcl

angledLineToY

Create a line segment from the current 2-dimensional sketch origin

along some angle (in degrees) for some length, ending at the provided value in the 'y' dimension.

angledLineToY(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch

Arguments

NameTypeDescriptionRequired
dataAngledLineToDataData to draw an angled line to a point.Yes
sketchSketchA sketch is a collection of paths.Yes
tagTagDeclaratorNo

Returns

Sketch - A sketch is a collection of paths.

Examples

exampleSketch = startSketchOn('XZ')
  |> startProfileAt([0, 0], %)
  |> angledLineToY({ angle = 60, to = 20 }, %)
  |> line([-20, 0], %)
  |> angledLineToY({ angle = 70, to = 10 }, %)
  |> close(%)

example = extrude(10, exampleSketch)

Rendered example of angledLineToY 0