diff --git a/nalgebra-glm/src/gtc/constants.rs b/nalgebra-glm/src/gtc/constants.rs index 92495a4a..a982ff0b 100644 --- a/nalgebra-glm/src/gtc/constants.rs +++ b/nalgebra-glm/src/gtc/constants.rs @@ -1,5 +1,4 @@ use na::{self, Real}; -use traits::Number; /// The euler constant. pub fn e() -> N { @@ -42,9 +41,7 @@ pub fn ln_two() -> N { } /// Returns `1`. -pub fn one() -> N { - N::one() -} +pub use na::one; /// Returns `1 / pi`. pub fn one_over_pi() -> N { @@ -133,6 +130,4 @@ pub fn two_thirds() -> N { } /// Returns `0`. -pub fn zero() -> N { - N::zero() -} \ No newline at end of file +pub use na::zero; \ No newline at end of file