aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-08-09 22:08:48 -0900
committermat <git@matdoes.dev>2025-08-09 22:08:48 -0900
commit3b659833c1ad4cca89b4cd553193edcb6d223163 (patch)
tree6035c6797703dcf0b0240999bae34893f29cd9e8 /azalea-core/src
parent45cb5823f50ece7af86804d4331bd7ba2f6c5917 (diff)
downloadazalea-drasl-3b659833c1ad4cca89b4cd553193edcb6d223163.tar.xz
clippy
Diffstat (limited to 'azalea-core/src')
-rw-r--r--azalea-core/src/math.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-core/src/math.rs b/azalea-core/src/math.rs
index 4422c371..d5fe5af9 100644
--- a/azalea-core/src/math.rs
+++ b/azalea-core/src/math.rs
@@ -1,10 +1,10 @@
use std::{
+ f64::consts::PI,
ops::{Add, Div, Sub},
sync::LazyLock,
};
pub const EPSILON: f64 = 1.0e-7;
-pub const PI: f64 = 3.141592653589793;
pub static SIN: LazyLock<[f32; 65536]> =
LazyLock::new(|| std::array::from_fn(|i| f64::sin((i as f64) * PI * 2. / 65536.) as f32));