[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
- Previous message: [Scummvm-cvs-logs] CVS: residual actor.cpp,1.11,1.12 actor.h,1.6,1.7 costume.cpp,1.7,1.8 costume.h,1.4,1.5 lua.cpp,1.29,1.30
- Next message: [Scummvm-cvs-logs] CVS: web compatibility.php,1.225,1.226
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [Scummvm-cvs-logs] CVS: residual actor.cpp,1.11,1.12 actor.h,1.6,1.7 costume.cpp,1.7,1.8 costume.h,1.4,1.5 lua.cpp,1.29,1.30
- Next message: [Scummvm-cvs-logs] CVS: web compatibility.php,1.225,1.226
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list