/[usata]/usata2/src/math/vector.hpp
ViewVC logotype

Diff of /usata2/src/math/vector.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by Descender, Tue Jan 4 15:04:37 2005 UTC revision 1.9 by Descender, Tue Jan 4 16:01:52 2005 UTC
# Line 15  Line 15 
15  #ifndef USATA_MATH_VECTOR_HPP  #ifndef USATA_MATH_VECTOR_HPP
16  #define USATA_MATH_VECTOR_HPP  #define USATA_MATH_VECTOR_HPP
17    
18    #include "policy.hpp"
19    
20  #include <iostream>  #include <iostream>
21  #include <cmath>  #include <cmath>
22  #include <boost/cast.hpp>  #include <boost/cast.hpp>
# Line 88  namespace usata Line 90  namespace usata
90                          friend bool                          friend bool
91                          operator == (const Vector4& lhs, const Vector4& rhs)                          operator == (const Vector4& lhs, const Vector4& rhs)
92                          {                          {
93                                  return (lhs.v[0] == rhs.v[0] && lhs.v[1] == rhs.v[1] &&                                  return (ScalarPolicy<T>::equal_to(lhs.v[0], rhs.v[0]) &&
94                                                  lhs.v[2] == rhs.v[2] && lhs.v[3] == rhs.v[3]);                                                  ScalarPolicy<T>::equal_to(lhs.v[1], rhs.v[1]) &&
95                                                    ScalarPolicy<T>::equal_to(lhs.v[2], rhs.v[2]) &&
96                                                    ScalarPolicy<T>::equal_to(lhs.v[3], rhs.v[3]));
97                          }                          }
98    
99                          //! \brief Inequality operator                          //! \brief Inequality operator

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26