include/vector.h
branchpyrit
changeset 28 ffe83ca074f3
parent 25 b8232edee786
child 34 28f6e8b9d5d1
equal deleted inserted replaced
27:e9bb83c2b8b9 28:ffe83ca074f3
    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 	};