parry3d_f64/utils/
consts.rs

1#![allow(clippy::excessive_precision)] // Clippy will complain in f32 mode, but we also need these consts for f64.
2
3use crate::math::Real;
4
5// pub(crate) const SIN_10_DEGREES: Real = 0.17364817766;
6// pub(crate) const COS_10_DEGREES: Real = 0.98480775301;
7// pub(crate) const COS_45_DEGREES: Real = 0.70710678118;
8// pub(crate) const SIN_45_DEGREES: Real = COS_45_DEGREES;
9pub(crate) const COS_1_DEGREES: Real = 0.99984769515;
10// pub(crate) const COS_5_DEGREES: Real = 0.99619469809;
11pub(crate) const COS_FRAC_PI_8: Real = 0.92387953251;
12#[cfg(feature = "dim2")]
13pub(crate) const SIN_FRAC_PI_8: Real = 0.38268343236;