--- 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; }