From b364920d9b439f62722f54006113bcca5c619924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 3 Oct 2013 00:57:43 +0200 Subject: [PATCH] Move the Round trait inheritance from VecExt to AlgebraicVecExt. What it the point of rounding an integer-valued vector? --- src/traits/structure.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.