| # | Line 285 | Line 285 | namespace oopse { | |
|---|---|---|
| 285 | * @return the length of this vector | |
| 286 | */ | |
| 287 | inline double length() { | |
| 288 | < | return sqrt(lengthSquared()); |
| 288 | > | return sqrt(lengthSquare()); |
| 289 | } | |
| 290 | ||
| 291 | /** | |
| # | Line 312 | Line 312 | namespace oopse { | |
| 312 | * Tests if this vector is normalized | |
| 313 | * @return true if this vector is normalized, otherwise return false | |
| 314 | */ | |
| 315 | < | inline bool isNormalized() const |
| 316 | < | { |
| 317 | < | return lengthSquare() == 1.0; |
| 315 | > | inline bool isNormalized() { |
| 316 | > | return equal(lengthSquare(), 1.0); |
| 317 | } | |
| 318 | ||
| 319 | protected: | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |