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>
This commit is contained in:
@ -46,8 +46,8 @@ export fn toYards(@num: number(Length)): number(yd) {
|
||||
/// exampleSketch = startSketchOn(XZ)
|
||||
/// |> startProfile(at = [0, 0])
|
||||
/// |> angledLine(
|
||||
/// angle = 50,
|
||||
/// length = 70 * cos(units::toRadians(45)),
|
||||
/// angle = 50deg,
|
||||
/// length = 70 * cos(units::toRadians(45deg)),
|
||||
/// )
|
||||
/// |> yLine(endAbsolute = 0)
|
||||
/// |> close()
|
||||
@ -64,7 +64,7 @@ export fn toRadians(@num: number(Angle)): number(rad) {
|
||||
/// exampleSketch = startSketchOn(XZ)
|
||||
/// |> startProfile(at = [0, 0])
|
||||
/// |> angledLine(
|
||||
/// angle = 50,
|
||||
/// angle = 50deg,
|
||||
/// length = 70 * cos(units::toDegrees((PI/4): number(rad))),
|
||||
/// )
|
||||
/// |> yLine(endAbsolute = 0)
|
||||
|
Reference in New Issue
Block a user