Missing 'xy<T> operator*(double, xy<T>)' added.
authoralpar
Tue, 11 Jan 2005 09:08:47 +0000
changeset 10717c70fc1b2d8b
parent 1070 6aa1520a0f2f
child 1072 ce824c6ffd5d
Missing 'xy<T> operator*(double, xy<T>)' added.
src/lemon/xy.h
     1.1 --- a/src/lemon/xy.h	Tue Jan 11 09:05:24 2005 +0000
     1.2 +++ b/src/lemon/xy.h	Tue Jan 11 09:08:47 2005 +0000
     1.3 @@ -145,6 +145,11 @@
     1.4  
     1.5      };
     1.6  
     1.7 +  ///Returns a vector multiplied by a scalar
     1.8 +  template<typename T> xy<T> operator*(const T &u,const xy<T> &x) {
     1.9 +    return x*u;
    1.10 +  };
    1.11 +
    1.12    ///Read a plainvector from a stream
    1.13  
    1.14    ///Read a plainvector from a stream