types.h

changeset 120
607301744394
parent 113
bbaa40226ec9
child 121
7e87c85ad092
--- a/types.h	Sat Apr 20 04:26:36 2013 +0300
+++ b/types.h	Sun Apr 21 04:17:05 2013 +0300
@@ -25,11 +25,15 @@
 		z = fZ;
 	}
 	
-	// =========================================================================
-	vertex& operator+= (vertex& other) {
+	void move (vertex other) {
 		x += other.x;
 		y += other.y;
 		z += other.z;
+	}
+	
+	// =========================================================================
+	vertex& operator+= (vertex other) {
+		move (other);
 		return *this;
 	}
 	

mercurial