* 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>
84 KiB
84 KiB
title, subtitle, excerpt, layout
title | subtitle | excerpt | layout |
---|---|---|---|
units::toRadians | Function in std::units | Converts a number to radians from its current units. | manual |
Converts a number to radians from its current units.
units::toRadians(@num: number(Angle)): number(rad)
Arguments
Name | Type | Description | Required |
---|---|---|---|
num |
number(Angle) |
A number. | Yes |
Returns
number(rad)
- A number.
Examples
exampleSketch = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> angledLine(angle = 50deg, length = 70 * cos(units::toRadians(45deg)))
|> yLine(endAbsolute = 0)
|> close()
example = extrude(exampleSketch, length = 5)