diff --git a/src/Magnum/Math/Vector.h b/src/Magnum/Math/Vector.h index 2fd026214..e608bb966 100644 --- a/src/Magnum/Math/Vector.h +++ b/src/Magnum/Math/Vector.h @@ -1320,19 +1320,19 @@ extern template MAGNUM_EXPORT Debug& operator<<(Debug&, const Vector<4, Double>& Type operator-(const Math::Vector& other) const { \ return Math::Vector::operator-(other); \ } \ - Type& operator*=(T number) { \ - Math::Vector::operator*=(number); \ + Type& operator*=(T scalar) { \ + Math::Vector::operator*=(scalar); \ return *this; \ } \ - Type operator*(T number) const { \ - return Math::Vector::operator*(number); \ + Type operator*(T scalar) const { \ + return Math::Vector::operator*(scalar); \ } \ - Type& operator/=(T number) { \ - Math::Vector::operator/=(number); \ + Type& operator/=(T scalar) { \ + Math::Vector::operator/=(scalar); \ return *this; \ } \ - Type operator/(T number) const { \ - return Math::Vector::operator/(number); \ + Type operator/(T scalar) const { \ + return Math::Vector::operator/(scalar); \ } \ Type& operator*=(const Math::Vector& other) { \ Math::Vector::operator*=(other); \ @@ -1366,11 +1366,11 @@ extern template MAGNUM_EXPORT Debug& operator<<(Debug&, const Vector<4, Double>& } #define MAGNUM_VECTORn_OPERATOR_IMPLEMENTATION(size, Type) \ - template inline Type operator*(typename std::common_type::type number, const Type& vector) { \ - return number*static_cast&>(vector); \ + template inline Type operator*(typename std::common_type::type scalar, const Type& vector) { \ + return scalar*static_cast&>(vector); \ } \ - template inline Type operator/(typename std::common_type::type number, const Type& vector) { \ - return number/static_cast&>(vector); \ + template inline Type operator/(typename std::common_type::type scalar, const Type& vector) { \ + return scalar/static_cast&>(vector); \ } \ \ template inline typename std::enable_if::value, Type&>::type operator%=(Type& a, Integral b) { \ @@ -1426,22 +1426,22 @@ extern template MAGNUM_EXPORT Debug& operator<<(Debug&, const Vector<4, Double>& template inline typename std::enable_if::value, Type>::type operator>>(const Type& vector, typename std::common_type::type shift) { \ return static_cast&>(vector) >> shift; \ } \ - template inline typename std::enable_if::value && std::is_floating_point::value, Type&>::type operator*=(Type& vector, FloatingPoint number) { \ - static_cast&>(vector) *= number; \ + template inline typename std::enable_if::value && std::is_floating_point::value, Type&>::type operator*=(Type& vector, FloatingPoint scalar) { \ + static_cast&>(vector) *= scalar; \ return vector; \ } \ - template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator*(const Type& vector, FloatingPoint number) { \ - return static_cast&>(vector)*number; \ + template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator*(const Type& vector, FloatingPoint scalar) { \ + return static_cast&>(vector)*scalar; \ } \ - template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator*(FloatingPoint number, const Type& vector) { \ - return number*static_cast&>(vector); \ + template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator*(FloatingPoint scalar, const Type& vector) { \ + return scalar*static_cast&>(vector); \ } \ - template inline typename std::enable_if::value && std::is_floating_point::value, Type&>::type operator/=(Type& vector, FloatingPoint number) { \ - static_cast&>(vector) /= number; \ + template inline typename std::enable_if::value && std::is_floating_point::value, Type&>::type operator/=(Type& vector, FloatingPoint scalar) { \ + static_cast&>(vector) /= scalar; \ return vector; \ } \ - template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator/(const Type& vector, FloatingPoint number) { \ - return static_cast&>(vector)/number; \ + template inline typename std::enable_if::value && std::is_floating_point::value, Type>::type operator/(const Type& vector, FloatingPoint scalar) { \ + return static_cast&>(vector)/scalar; \ } \ \ template inline typename std::enable_if::value && std::is_floating_point::value, Type&>::type operator*=(Type& a, const Math::Vector& b) { \