| # | 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 | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |