* KCL test for rectangle * Rectangle function * Rectangle helper tests * Rectangle helper * Fix clippy lints * Update docs * fmt * Fix bug * fmt * Fix doc comments * Update generated docs --------- Co-authored-by: Jonathan Tran <jonnytran@gmail.com>
12 lines
377 B
Plaintext
12 lines
377 B
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of unparsing rect.kcl
|
|
---
|
|
x = startSketchOn(XY)
|
|
|> startProfile(at = [-2, -1])
|
|
|> angledLine(angle = 0, length = 3, tag = $a)
|
|
|> angledLine(angle = segAng(a) + 90, length = 2)
|
|
|> angledLine(angle = segAng(a), length = -segLen(a))
|
|
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
|
|> close()
|