src/vector.h
branchpyrit
changeset 21 79b516a3803d
parent 14 fc18ac4833f2
--- 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()
 	{