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

Comparing trunk/OOPSE-4/src/math/Vector.hpp (file contents):
Revision 1595 by tim, Tue Oct 19 04:21:07 2004 UTC vs.
Revision 1597 by tim, Tue Oct 19 04:34:35 2004 UTC

# 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:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines