Changeset 204 for libs/suds/src/Vector.h
 Timestamp:
 11/11/2009 10:56:36 AM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libs/suds/src/Vector.h
r97 r204 60 60 T DistanceFrom(const Vector &other) const; 61 61 T Magnitude() const; 62 T Dot(const Vector<T> &other); 62 63 Vector Normalised() const; 63 64 … … 187 188 188 189 template<class T> 190 T Vector<T>::Dot(const Vector<T> &other) 191 { 192 assert(m_Size==other.m_Size); 193 T acc=0; 194 for (unsigned int i=0; i<m_Size; i++) 195 { 196 acc+=(*this)[i]*other[i]; 197 } 198 return acc; 199 } 200 201 template<class T> 189 202 Vector<T> Vector<T>::Normalised() const 190 203 {
Note: See TracChangeset
for help on using the changeset viewer.