Change trig functions to return number with Default units (#7425)

* Change trig functions to return number with Default units

* Update docs

* Update output
This commit is contained in:
Jonathan Tran
2025-06-10 20:24:48 -04:00
committed by GitHub
parent ff15c7b9db
commit 851ea28bd3
21 changed files with 192 additions and 115 deletions

View File

@ -72,7 +72,7 @@ export TAU = 6.28318530717958647692528676655900577_
/// example = extrude(exampleSketch, length = 5)
/// ```
@(impl = std_rust)
export fn cos(@num: number(Angle)): number(Count) {}
export fn cos(@num: number(Angle)): number {}
/// Compute the sine of a number.
///
@ -89,7 +89,7 @@ export fn cos(@num: number(Angle)): number(Count) {}
/// example = extrude(exampleSketch, length = 5)
/// ```
@(impl = std_rust)
export fn sin(@num: number(Angle)): number(Count) {}
export fn sin(@num: number(Angle)): number {}
/// Compute the tangent of a number.
///
@ -106,7 +106,7 @@ export fn sin(@num: number(Angle)): number(Count) {}
/// example = extrude(exampleSketch, length = 5)
/// ```
@(impl = std_rust)
export fn tan(@num: number(Angle)): number(Count) {}
export fn tan(@num: number(Angle)): number {}
/// Compute the arccosine of a number.
///