We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708ae61 commit b0a9fe5Copy full SHA for b0a9fe5
crates/core_simd/src/vector/float.rs
@@ -72,7 +72,7 @@ macro_rules! impl_float_vector {
72
/// Converts each lane from degrees to radians.
73
#[inline]
74
pub fn to_radians(self) -> Self {
75
- self * Self::splat(core::$type::consts::PI / 180.)
+ self * Self::splat($type::to_radians(1.))
76
}
77
78
0 commit comments