diff --git a/math/math.v b/math/math.v index 40684eb2e0..55e380db5f 100644 --- a/math/math.v +++ b/math/math.v @@ -65,6 +65,10 @@ fn radians(degrees f64) f64 { return degrees * (PI / 180.0) } +fn degrees(radians f64) f64 { + return radians * (180.0 / PI) +} + fn round(f f64) f64 { return C.round(f) }