Remove unused constrants.
This commit is contained in:
12
src/utils.rs
12
src/utils.rs
@@ -13,18 +13,6 @@ use {
|
|||||||
num::One,
|
num::One,
|
||||||
};
|
};
|
||||||
|
|
||||||
// pub(crate) const SIN_10_DEGREES: f32 = 0.17364817766;
|
|
||||||
// pub(crate) const COS_10_DEGREES: f32 = 0.98480775301;
|
|
||||||
// pub(crate) const COS_45_DEGREES: f32 = 0.70710678118;
|
|
||||||
// pub(crate) const SIN_45_DEGREES: f32 = COS_45_DEGREES;
|
|
||||||
#[cfg(feature = "dim3")]
|
|
||||||
pub(crate) const COS_1_DEGREES: f32 = 0.99984769515;
|
|
||||||
pub(crate) const COS_5_DEGREES: f32 = 0.99619469809;
|
|
||||||
// #[cfg(feature = "dim2")]
|
|
||||||
pub(crate) const COS_FRAC_PI_8: f32 = 0.92387953251;
|
|
||||||
#[cfg(feature = "dim2")]
|
|
||||||
pub(crate) const SIN_FRAC_PI_8: f32 = 0.38268343236;
|
|
||||||
|
|
||||||
pub(crate) fn inv(val: f32) -> f32 {
|
pub(crate) fn inv(val: f32) -> f32 {
|
||||||
if val == 0.0 {
|
if val == 0.0 {
|
||||||
0.0
|
0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user