2025-05-11 19:32:33 +12:00
|
|
|
/// This module contains a few handy constants for defining turns.
|
|
|
|
|
2025-03-30 11:10:44 +13:00
|
|
|
@no_std
|
2025-05-06 08:44:03 +12:00
|
|
|
@settings(defaultLengthUnit = mm, kclVersion = 1.0)
|
2025-03-30 11:10:44 +13:00
|
|
|
|
2025-05-11 19:32:33 +12:00
|
|
|
/// No turn, zero degrees/radians.
|
2025-06-12 08:44:55 +12:00
|
|
|
export ZERO = 0: number(Angle)
|
2025-05-11 19:32:33 +12:00
|
|
|
|
|
|
|
/// A quarter turn, 90 degrees or π/2 radians.
|
2025-03-30 11:10:44 +13:00
|
|
|
export QUARTER_TURN = 90deg
|
2025-05-11 19:32:33 +12:00
|
|
|
|
|
|
|
/// A half turn, 180 degrees or π radians.
|
2025-03-30 11:10:44 +13:00
|
|
|
export HALF_TURN = 180deg
|
2025-05-11 19:32:33 +12:00
|
|
|
|
|
|
|
/// Three quarters of a turn, 270 degrees or 1.5*π radians.
|
2025-03-30 11:10:44 +13:00
|
|
|
export THREE_QUARTER_TURN = 270deg
|