X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;ds=sidebyside;f=include%2Fla.h;h=0ef6ee8210432e27fd937acc843e620ac555fcde;hb=4b7b856e70fe8047f985e2598020032d0d87a672;hp=6350afaea398d5eb0bc13bf36c3636f96c7391db;hpb=692ea38238c7d5f4199734b3941a2fcc7bd19f57;p=meshio%2Fmeshio.git diff --git a/include/la.h b/include/la.h index 6350afa..0ef6ee8 100644 --- a/include/la.h +++ b/include/la.h @@ -52,6 +52,11 @@ struct Vector3 { return Vector3(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)