Browse Source

Propagated dot product operator to Vector specializations.

Otherwise GCC doesn't see the operator.
vectorfields
Vladimír Vondruš 15 years ago
parent
commit
b27d5efc04
  1. 3
      src/Math/Vector2.h
  2. 3
      src/Math/Vector3.h
  3. 3
      src/Math/Vector4.h

3
src/Math/Vector2.h

@ -53,6 +53,9 @@ template<class T> class Vector2: public Vector<T, 2> {
/** @copydoc Vector::operator=() */
inline Vector2<T>& operator=(const Vector<T, 2>& other) { return Vector<T, 2>::operator=(other); }
/** @copydoc Vector::operator*(const Vector<T, size>&) */
inline T operator*(const Vector<T, 2>& other) const { return Vector<T, 2>::operator*(other); }
/** @copydoc Vector::operator*(T) */
inline Vector2<T> operator*(T number) const { return Vector<T, 2>::operator*(number); }

3
src/Math/Vector3.h

@ -80,6 +80,9 @@ template<class T> class Vector3: public Vector<T, 3> {
/** @copydoc Vector::operator=() */
inline Vector3<T>& operator=(const Vector<T, 3>& other) { return Vector<T, 3>::operator=(other); }
/** @copydoc Vector::operator*(const Vector<T, size>&) */
inline T operator*(const Vector<T, 3>& other) const { return Vector<T, 3>::operator*(other); }
/** @copydoc Vector::operator*(T) */
inline Vector3<T> operator*(T number) const { return Vector<T, 3>::operator*(number); }

3
src/Math/Vector4.h

@ -96,6 +96,9 @@ template<class T> class Vector4: public Vector<T, 4> {
/** @copydoc Vector::operator=() */
inline Vector4<T>& operator=(const Vector<T, 4>& other) { return Vector<T, 4>::operator=(other); }
/** @copydoc Vector::operator*(const Vector<T, size>&) */
inline T operator*(const Vector<T, 4>& other) const { return Vector<T, 4>::operator*(other); }
/** @copydoc Vector::operator*(T) */
inline Vector4<T> operator*(T number) const { return Vector<T, 4>::operator*(number); }

Loading…
Cancel
Save