Files
modeling-app/rust/kcl-lib/std/turns.kcl
Nick Cameron df6c81b0b4 Units bug fix with modulo (#7446)
* Add degrees annotations to examples

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

* Fix a units bug with the modulo operation

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-06-12 08:44:55 +12:00

17 lines
440 B
Plaintext

/// 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: number(Angle)
/// 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