diff options
| author | mat <git@matdoes.dev> | 2025-08-05 05:49:49 +0400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-05 07:50:48 +0600 |
| commit | 45cb5823f50ece7af86804d4331bd7ba2f6c5917 (patch) | |
| tree | 0386a2596ff823828048d658ad9bf4db70c12226 /azalea-core/src | |
| parent | 23b7f20a0d88b54d430820baeb4a6da0316a009a (diff) | |
| download | azalea-drasl-45cb5823f50ece7af86804d4331bd7ba2f6c5917.tar.xz | |
use same pi value as java
Diffstat (limited to 'azalea-core/src')
| -rw-r--r-- | azalea-core/src/math.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-core/src/math.rs b/azalea-core/src/math.rs index d5fe5af9..4422c371 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)); |
