Changeset 1049:e27446e1deda in lemon0.x
 Timestamp:
 01/04/05 23:14:42 (17 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1443
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/xy.h
r1045 r1049 62 62 63 63 64 ///Conversion constructor 65 template<class TT> xy(const xy<TT> &p) : x(p.x), y(p.y) {} 66 64 67 ///Gives back the square of the norm of the vector 65 68 T normSquare(){ … … 104 107 xy<T> b=*this; 105 108 return b+=u; 109 }; 110 111 ///Returns the neg of the vectors 112 xy<T> operator() const { 113 xy<T> b=*this; 114 b.x=b.x; b.y=b.y; 115 return b; 106 116 }; 107 117
Note: See TracChangeset
for help on using the changeset viewer.