OSDN Git Service
(root)
/
meshio
/
meshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pmd_import sphere map.
[meshio/meshio.git]
/
include
/
la.h
diff --git
a/include/la.h
b/include/la.h
index
6350afa
..
0ef6ee8
100644
(file)
--- 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)