diff -r f22952603f29 -r 79b516a3803d src/vector.h --- a/src/vector.h Thu Nov 29 18:30:16 2007 +0100 +++ b/src/vector.h Fri Nov 30 00:44:51 2007 +0100 @@ -34,6 +34,8 @@ // index operator float &operator[](int index) { return cell[index]; }; + bool operator==(Vector3 &v) { return x==v.x && y==v.y && z==v.z; }; + // normalize Vector3 normalize() {