Browse Source

Math: rename Vector function argument for consistency.

It's always `scalar` for scalars and `other` for vectors.
pull/638/head
Vladimír Vondruš 2 years ago
parent
commit
bfe76195ef
  1. 4
      src/Magnum/Math/Vector.h

4
src/Magnum/Math/Vector.h

@ -735,9 +735,9 @@ template<std::size_t size, class T> class Vector {
#else #else
template<class Integral = T> typename std::enable_if<std::is_integral<Integral>::value, Vector<size, T>&>::type template<class Integral = T> typename std::enable_if<std::is_integral<Integral>::value, Vector<size, T>&>::type
#endif #endif
operator%=(T other) { operator%=(T scalar) {
for(std::size_t i = 0; i != size; ++i) for(std::size_t i = 0; i != size; ++i)
_data[i] %= other; _data[i] %= scalar;
return *this; return *this;
} }

Loading…
Cancel
Save