ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/math/Vector.hpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/math/Vector.hpp (file contents):
Revision 1594 by tim, Mon Oct 18 23:13:23 2004 UTC vs.
Revision 1595 by tim, Tue Oct 19 04:21:07 2004 UTC

# Line 301 | Line 301 | namespace oopse {
301                  double len;
302  
303                  len = length();
304 +                
305 +                //if (len < oopse:epsilon)
306 +                //  throw();
307 +                
308                  *this /= len;
309              }
310  
# Line 392 | Line 396 | namespace oopse {
396          return result;          
397      }
398      
395    /** fuzzy comparson */
396    template<typename Real, unsigned int Dim>        
397    inline bool epsilonEqual( const Vector<Real, Dim>& v1, const Vector<Real, Dim>& v2 ) {
398
399    }
400
401    
399      /**
400       * Returns the dot product of two Vectors
401       * @param v1 first vector

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines