Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by mkk13 ( 14 years ago )
struct SVector3d
{
int x;
int y;
int z;
};
SVector3d operator+(const SVector3d wektor1, const SVector3d wektor2)
{
SVector3d wynik;
wynik.x = (wektor1.x + wektor2.x);
wynik.y = (wektor1.y + wektor2.y);
wynik.z = (wektor1.z + wektor2.z);
return wynik;
}
SVector3d operator*(const SVector3d wektor1, const SVector3d wektor2)
{
SVector3d wynik;
wynik.x = (wektor1.x * wektor2.x);
wynik.y = (wektor1.y * wektor2.y);
wynik.z = (wektor1.z * wektor2.z);
return wynik;
}
Revise this Paste