From 7905a5e96c213ee716bc3bd53549fab12627a887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 31 Dec 2012 18:46:36 +0100 Subject: [PATCH] Math: return proper type from Vector::projected() in subclasses. --- src/Math/Vector.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Math/Vector.h b/src/Math/Vector.h index 39589af74..a2b2ee7d1 100644 --- a/src/Math/Vector.h +++ b/src/Math/Vector.h @@ -365,7 +365,10 @@ extern template Corrade::Utility::Debug MAGNUM_EXPORT operator<<(Corrade::Utilit return *this; \ } \ \ - inline Type normalized() const { return Math::Vector::normalized(); } + inline Type normalized() const { return Math::Vector::normalized(); } \ + inline Type projected(const Math::Vector& other) const { \ + return Math::Vector::projected(other); \ + } #define MAGNUM_VECTOR_SUBCLASS_OPERATOR_IMPLEMENTATION(Type, size) \ template inline typename std::enable_if::value, Type>::type operator*(U number, const Type& vector) { \