diff --git a/matrix/Vector3.hpp b/matrix/Vector3.hpp index 5f463b61cb..6e8cc601a1 100644 --- a/matrix/Vector3.hpp +++ b/matrix/Vector3.hpp @@ -75,11 +75,21 @@ public: return Matrix31::operator+(other); } + inline Vector3 operator+(Type scalar) const + { + return Matrix31::operator+(scalar); + } + inline Vector3 operator-(Vector3 other) const { return Matrix31::operator-(other); } + inline Vector3 operator-(Type scalar) const + { + return Matrix31::operator-(scalar); + } + inline Vector3 operator-() const { return Matrix31::operator-();