Skip to content

Commit b0a9fe5

Browse files
committed
Extract constant from scalar to_radians as well
1 parent 708ae61 commit b0a9fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/vector/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ macro_rules! impl_float_vector {
7272
/// Converts each lane from degrees to radians.
7373
#[inline]
7474
pub fn to_radians(self) -> Self {
75-
self * Self::splat(core::$type::consts::PI / 180.)
75+
self * Self::splat($type::to_radians(1.))
7676
}
7777
}
7878

0 commit comments

Comments
 (0)