101 |
} |
} |
102 |
|
|
103 |
//! Scalar product between 2 TinyVectors. |
//! Scalar product between 2 TinyVectors. |
104 |
inline real_t operator*(const TinyVector<N,real_t>& V) const |
template <typename T2> |
105 |
|
inline real_t operator*(const TinyVector<N,T2>& V) const |
106 |
{ |
{ |
107 |
assert(typeid(T) == typeid(real_t)); |
assert(typeid(T) == typeid(real_t)); |
108 |
real_t s=0; |
real_t s=0; |
312 |
} |
} |
313 |
|
|
314 |
//! Scalar product between 2 TinyVectors. |
//! Scalar product between 2 TinyVectors. |
315 |
inline real_t operator*(const TinyVector<3,real_t>& V) const |
template <typename T2> |
316 |
|
inline real_t operator*(const TinyVector<3,T2>& V) const |
317 |
{ |
{ |
318 |
assert(typeid(T) == typeid(real_t)); |
assert(typeid(T) == typeid(real_t)); |
319 |
real_t s=0; |
real_t s=0; |