[Lemon-commits] [lemon_svn] alpar: r1467 - hugo/trunk/src/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:45:40 CET 2006


Author: alpar
Date: Tue Jan 11 10:08:47 2005
New Revision: 1467

Modified:
   hugo/trunk/src/lemon/xy.h

Log:
Missing 'xy<T> operator*(double, xy<T>)' added. 

Modified: hugo/trunk/src/lemon/xy.h
==============================================================================
--- hugo/trunk/src/lemon/xy.h	(original)
+++ hugo/trunk/src/lemon/xy.h	Tue Jan 11 10:08:47 2005
@@ -145,6 +145,11 @@
 
     };
 
+  ///Returns a vector multiplied by a scalar
+  template<typename T> xy<T> operator*(const T &u,const xy<T> &x) {
+    return x*u;
+  };
+
   ///Read a plainvector from a stream
 
   ///Read a plainvector from a stream



More information about the Lemon-commits mailing list