Browse Source

Math: return proper type from Vector::projected() in subclasses.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
7905a5e96c
  1. 5
      src/Math/Vector.h

5
src/Math/Vector.h

@ -365,7 +365,10 @@ extern template Corrade::Utility::Debug MAGNUM_EXPORT operator<<(Corrade::Utilit
return *this; \
} \
\
inline Type<T> normalized() const { return Math::Vector<size, T>::normalized(); }
inline Type<T> normalized() const { return Math::Vector<size, T>::normalized(); } \
inline Type<T> projected(const Math::Vector<size, T>& other) const { \
return Math::Vector<size, T>::projected(other); \
}
#define MAGNUM_VECTOR_SUBCLASS_OPERATOR_IMPLEMENTATION(Type, size) \
template<class T, class U> inline typename std::enable_if<std::is_arithmetic<U>::value, Type<T>>::type operator*(U number, const Type<T>& vector) { \

Loading…
Cancel
Save