diff --git a/src/Math/Vector2.h b/src/Math/Vector2.h index 9919527a9..1b234580a 100644 --- a/src/Math/Vector2.h +++ b/src/Math/Vector2.h @@ -53,6 +53,9 @@ template class Vector2: public Vector { /** @copydoc Vector::operator=() */ inline Vector2& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector2 operator*(T number) const { return Vector::operator*(number); } diff --git a/src/Math/Vector3.h b/src/Math/Vector3.h index e59c77903..15eaca6e6 100644 --- a/src/Math/Vector3.h +++ b/src/Math/Vector3.h @@ -80,6 +80,9 @@ template class Vector3: public Vector { /** @copydoc Vector::operator=() */ inline Vector3& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector3 operator*(T number) const { return Vector::operator*(number); } diff --git a/src/Math/Vector4.h b/src/Math/Vector4.h index b37593e9a..11f82593f 100644 --- a/src/Math/Vector4.h +++ b/src/Math/Vector4.h @@ -96,6 +96,9 @@ template class Vector4: public Vector { /** @copydoc Vector::operator=() */ inline Vector4& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector4 operator*(T number) const { return Vector::operator*(number); }