diff --git a/vlib/math/math.v b/vlib/math/math.v index 4a05815dbf..f0d4718c4c 100644 --- a/vlib/math/math.v +++ b/vlib/math/math.v @@ -36,7 +36,7 @@ pub fn copysign(x f64, y f64) f64 { return f64_from_bits((f64_bits(x) & ~sign_mask) | (f64_bits(y) & sign_mask)) } -// degrees convert from degrees to radians. +// degrees converts from radians to degrees. [inline] pub fn degrees(radians f64) f64 { return radians * (180.0 / pi) @@ -103,7 +103,7 @@ pub fn signi(n f64) int { return int(copysign(1.0, n)) } -// radians convert from radians to degrees. +// radians converts from degrees to radians. [inline] pub fn radians(degrees f64) f64 { return degrees * (pi / 180.0)