[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Usata-commits] Changes to usata2/src/math/vector.hpp
From: |
Chong Kai Xiong |
Subject: |
[Usata-commits] Changes to usata2/src/math/vector.hpp |
Date: |
Tue, 04 Jan 2005 11:21:09 -0500 |
Index: usata2/src/math/vector.hpp
diff -u usata2/src/math/vector.hpp:1.8 usata2/src/math/vector.hpp:1.9
--- usata2/src/math/vector.hpp:1.8 Tue Jan 4 15:04:37 2005
+++ usata2/src/math/vector.hpp Tue Jan 4 16:01:52 2005
@@ -10,11 +10,13 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: vector.hpp,v 1.8 2005/01/04 15:04:37 Descender Exp $
+// $Id: vector.hpp,v 1.9 2005/01/04 16:01:52 Descender Exp $
#ifndef USATA_MATH_VECTOR_HPP
#define USATA_MATH_VECTOR_HPP
+#include "policy.hpp"
+
#include <iostream>
#include <cmath>
#include <boost/cast.hpp>
@@ -88,8 +90,10 @@
friend bool
operator == (const Vector4& lhs, const Vector4& rhs)
{
- return (lhs.v[0] == rhs.v[0] && lhs.v[1] ==
rhs.v[1] &&
- lhs.v[2] == rhs.v[2] &&
lhs.v[3] == rhs.v[3]);
+ return (ScalarPolicy<T>::equal_to(lhs.v[0],
rhs.v[0]) &&
+
ScalarPolicy<T>::equal_to(lhs.v[1], rhs.v[1]) &&
+
ScalarPolicy<T>::equal_to(lhs.v[2], rhs.v[2]) &&
+
ScalarPolicy<T>::equal_to(lhs.v[3], rhs.v[3]));
}
//! \brief Inequality operator