drag-resizing for doom3/quake4 light_radius
[xonotic/netradiant.git] / libs / math / vector.h
index a9dae794c9dc95bd288e445c7e20020a7d224a2b..ef0d2251bc4b78f13e1fffde2cf21942567e754d 100644 (file)
@@ -651,6 +651,11 @@ inline BasicVector3<Element> vector3_negated(const BasicVector3<Element>& self)
 {
   return BasicVector3<Element>(-self.x(), -self.y(), -self.z()); 
 }
+template<typename Element>
+inline BasicVector3<Element> operator-(const BasicVector3<Element>& self)
+{
+  return vector3_negated(self); 
+}
 
 template<typename Element>
 inline void vector3_negate(BasicVector3<Element>& self)