Commit a70a25d0 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'vectort-scaling-fix' into 'master'

take VectorT argument by reference for non-member vector scalar multiplication (fixes #12)



See merge request !29
parents 0a35e4d2 3b5364d3
Pipeline #156 failed with stage
......@@ -251,7 +251,7 @@ VectorT<double,3>::operator%(const VectorT<double,3>& _rhs) const
/// \relates OpenMesh::VectorT
/// scalar * vector
template<typename Scalar1, typename Scalar2,int N>
inline VectorT<Scalar1,N> operator*(Scalar2 _s, const VectorT<Scalar1,N> _v) {
inline VectorT<Scalar1,N> operator*(Scalar2 _s, const VectorT<Scalar1,N>& _v) {
return _v*_s;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment