X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=include%2Fla.h;h=6350afaea398d5eb0bc13bf36c3636f96c7391db;hb=8093d81853548bc573586ee41f84f26971bc8acb;hp=12935e4c8d2379f0235cb36c0b0da4ea8974df1d;hpb=b9215aaa179f981e814eae39736f5ba45629a323;p=meshio%2Fmeshio.git diff --git a/include/la.h b/include/la.h index 12935e4..6350afa 100644 --- a/include/la.h +++ b/include/la.h @@ -47,6 +47,11 @@ struct Vector3 { return x==rhs.x && y==rhs.y && z==rhs.z; } + + Vector3 operator+(const Vector3 &rhs) + { + return Vector3(x+rhs.x, y+rhs.y, z+rhs.z); + } }; #ifndef SWIG inline std::ostream &operator<<(std::ostream &os, const Vector3 &rhs)