[Scummvm-cvs-logs] CVS: residual vector3d.h,1.2,1.3

James Brown ender at users.sourceforge.net
Tue Aug 26 07:14:35 CEST 2003


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv25006

Modified Files:
	vector3d.h 
Log Message:
Add an == and != operator to the Vector class


Index: vector3d.h
===================================================================
RCS file: /cvsroot/scummvm/residual/vector3d.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- vector3d.h	26 Aug 2003 00:25:22 -0000	1.2
+++ vector3d.h	26 Aug 2003 14:10:10 -0000	1.3
@@ -49,6 +49,14 @@
     return *this;
   }
 
+  bool operator ==(const Vector3d &v) {
+    return ( (x() == v.x()) && (y() == v.y()) && (z() == v.z()) );
+  }
+
+  bool operator !=(const Vector3d &v) {
+    return ( (x() != v.x()) || (y() != v.y()) || (z() != v.z()) );
+  }
+
   Vector3d& operator +=(const Vector3d &v) {
     x() += v.x(); y() += v.y(); z() += v.z();
     return *this;





More information about the Scummvm-git-logs mailing list