Docs content (#6792)

* Add documentation to modules, and some constants and types

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Improve the language reference

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-05-11 19:32:33 +12:00
committed by GitHub
parent f36b69f4f0
commit 0621e1a53e
97 changed files with 511 additions and 282 deletions

View File

@ -1,7 +1,16 @@
/// This module contains a few handy constants for defining turns.
@no_std
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
/// No turn, zero degrees/radians.
export ZERO = 0
/// A quarter turn, 90 degrees or π/2 radians.
export QUARTER_TURN = 90deg
/// A half turn, 180 degrees or π radians.
export HALF_TURN = 180deg
/// Three quarters of a turn, 270 degrees or 1.5*π radians.
export THREE_QUARTER_TURN = 270deg