OSDN Git Service

implement pmd_import.
[meshio/meshio.git] / include / la.h
index 12935e4..6350afa 100644 (file)
@@ -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)