equal
deleted
inserted
replaced
67 y += v.y; |
67 y += v.y; |
68 z += v.z; |
68 z += v.z; |
69 return *this; |
69 return *this; |
70 }; |
70 }; |
71 |
71 |
|
72 // cut |
|
73 Vector3 operator/=(const Float &f) |
|
74 { |
|
75 x /= f; |
|
76 y /= f; |
|
77 z /= f; |
|
78 return *this; |
|
79 }; |
|
80 |
72 // sum |
81 // sum |
73 friend Vector3 operator+(const Vector3 &a, const Vector3 &b) |
82 friend Vector3 operator+(const Vector3 &a, const Vector3 &b) |
74 { |
83 { |
75 return Vector3(a.x + b.x, a.y + b.y, a.z + b.z); |
84 return Vector3(a.x + b.x, a.y + b.y, a.z + b.z); |
76 }; |
85 }; |