math: fix typos (#11533)
parent
740af306c0
commit
396eede4db
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue