Vector3f: Add operator+/- for scalars

This commit is contained in:
JacobCrabill authored and Julian Kent committed 2020-12-17 18:05:46 +01:00
1 parent a504b6e881
commit 158409abce
1 file changed
+10
+10
View File
@@ -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-();