types.h

changeset 120
607301744394
parent 113
bbaa40226ec9
child 121
7e87c85ad092
equal deleted inserted replaced
119:b93a64f5ee67 120:607301744394
23 x = fX; 23 x = fX;
24 y = fY; 24 y = fY;
25 z = fZ; 25 z = fZ;
26 } 26 }
27 27
28 // ========================================================================= 28 void move (vertex other) {
29 vertex& operator+= (vertex& other) {
30 x += other.x; 29 x += other.x;
31 y += other.y; 30 y += other.y;
32 z += other.z; 31 z += other.z;
32 }
33
34 // =========================================================================
35 vertex& operator+= (vertex other) {
36 move (other);
33 return *this; 37 return *this;
34 } 38 }
35 39
36 // ========================================================================= 40 // =========================================================================
37 vertex operator- () const { 41 vertex operator- () const {

mercurial