diff --git a/src/traits/structure.rs b/src/traits/structure.rs index d928f711..a931556d 100644 --- a/src/traits/structure.rs +++ b/src/traits/structure.rs @@ -36,13 +36,13 @@ pub trait AlgebraicVec: Vec + Norm { /// Trait grouping uncommon, low-level and borderline (from the mathematical point of view) /// operations on vectors. -pub trait VecExt: Vec + Indexable + Iterable + Round + +pub trait VecExt: Vec + Indexable + Iterable + UniformSphereSample + ScalarAdd + ScalarSub + Bounded + Orderable { } /// Trait grouping uncommon, low-level and borderline (from the mathematical point of view) /// operations on vectors. -pub trait AlgebraicVecExt: AlgebraicVec + VecExt + Basis { } +pub trait AlgebraicVecExt: AlgebraicVec + VecExt + Basis + Round { } impl + Add + Neg + Zero + Eq + Mul + Div + Dot> Vec for V { } @@ -50,11 +50,11 @@ Vec for V { } impl + Norm> AlgebraicVec for V { } impl + Indexable + Iterable + Round + + V: Vec + Indexable + Iterable + UniformSphereSample + ScalarAdd + ScalarSub + Bounded + Orderable> VecExt for V { } -impl + VecExt + Basis> AlgebraicVecExt for V { } +impl + VecExt + Basis + Round> AlgebraicVecExt for V { } /// Trait of vectors which can be converted to another vector. Used to change the type of a vector /// components.