1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: fix typos (#11533)

This commit is contained in:
czkz 2021-09-18 12:23:31 +03:00 committed by GitHub
parent 740af306c0
commit 396eede4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)