kcl

angledLineOfXLength

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

along some angle (in degrees) for some relative length in the 'x' dimension.

angledLineOfXLength(data: AngledLineData, sketch: Sketch, tag?: TagDeclarator) -> Sketch

Arguments

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

Returns

Sketch - A sketch is a collection of paths.

Examples

sketch001 = startSketchOn('XZ')
  |> startProfileAt([0, 0], %)
  |> angledLineOfXLength({ angle: 45, length: 10 }, %, $edge1)
  |> angledLineOfXLength({ angle: -15, length: 20 }, %, $edge2)
  |> line([0, -5], %)
  |> close(%, $edge3)

extrusion = extrude(10, sketch001)

Rendered example of angledLineOfXLength 0