kcl

tangentialArcTo

Starting at the current sketch's origin, draw a curved line segment along

some part of an imaginary circle until it reaches the desired (x, y) coordinates.

tangentialArcTo(to: [number], sketch: Sketch, tag?: TagDeclarator) -> Sketch

Arguments

NameTypeDescriptionRequired
to[number]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], %)
  |> angledLine({ angle: 60, length: 10 }, %)
  |> tangentialArcTo([15, 15], %)
  |> line([10, -15], %)
  |> close(%)

example = extrude(10, exampleSketch)

Rendered example of tangentialArcTo 0