summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Vector3.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 74cffac33..900ad65e3 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -255,6 +255,11 @@ public:
);
}
+ inline Vector3<T> operator - (void) const
+ {
+ return Vector3<T>(-x, -y, -z);
+ }
+
inline Vector3<T> operator * (const Vector3<T>& a_Rhs) const
{
return Vector3<T>(