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
sketchSketchYes
tagTagDeclaratorNo

Returns

Sketch

Examples

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

example = extrude(exampleSketch, length = 10)

Rendered example of tangentialArcTo 0