Commit 038eb8d7 by Sylvain Thery

### resolve pb of x*V with vector_gen

parent aff22ee0
 ... @@ -117,7 +117,11 @@ public: ... @@ -117,7 +117,11 @@ public: Vector operator-() const ; Vector operator-() const ; Vector operator*(T a) const ; Vector operator*(T a) const ; // template // Vector operator*(T2 a) const ; Vector operator/(T a) const ; Vector operator/(T a) const ; ... @@ -208,8 +212,8 @@ bool isNull(T x, int precision = 0) ; ... @@ -208,8 +212,8 @@ bool isNull(T x, int precision = 0) ; template template bool isNull2(T x, int precision = 0) ; bool isNull2(T x, int precision = 0) ; template // template Vector operator*(T a, const Vector& v) ; // Vector operator*(T a, const Vector& v) ; template template Vector operator/(T a, const Vector& v) ; Vector operator/(T a, const Vector& v) ; ... @@ -222,6 +226,9 @@ T tripleProduct(const Vector& v1, const Vector& v2, const Vector ... @@ -222,6 +226,9 @@ T tripleProduct(const Vector& v1, const Vector& v2, const Vector template template Vector slerp(const Vector &v1, const Vector &v2, const T &t) ; Vector slerp(const Vector &v1, const Vector &v2, const T &t) ; template Vector operator*(T2 b, const Vector& v); /**********************************************/ /**********************************************/ /* SOME USEFUL TYPEDEFS */ /* SOME USEFUL TYPEDEFS */ ... ...
 ... @@ -405,12 +405,13 @@ inline bool isNull2(T x, int precision) ... @@ -405,12 +405,13 @@ inline bool isNull2(T x, int precision) return (isNull(x, - (precision * precision))) ; return (isNull(x, - (precision * precision))) ; } } template template inline Vector operator*(T a, const Vector& v) inline Vector operator*(T2 b, const Vector& v) { { return v * a ; return v * T(b) ; } } template template inline Vector operator/(T a, const Vector& v) inline Vector operator/(T a, const Vector& v) { { ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment