Files
modeling-app/docs/kcl/lineTo.md
Jess Frazelle 790af3842c Recusive docs (#4023)
updates



updates



updates



updates



updates



updates



better



updates



array of



updates



updates



updates



updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-09-27 19:50:44 -07:00

78 KiB

title, excerpt, layout
title excerpt layout
lineTo Draw a line from the current origin to some absolute (x, y) point. manual

Draw a line from the current origin to some absolute (x, y) point.

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

Arguments

Name Type Description Required
to [number] Yes
sketch Sketch A sketch is a collection of paths. Yes
tag TagDeclarator No

Returns

Sketch - A sketch is a collection of paths.

Examples

const exampleSketch = startSketchOn("XZ")
  |> startProfileAt([0, 0], %)
  |> lineTo([10, 0], %)
  |> lineTo([0, 10], %)
  |> lineTo([-10, 0], %)
  |> close(%)

const example = extrude(5, exampleSketch)

Rendered example of lineTo 0