Changeset 2863 for issm/trunk/src/c/Bamgx/R2.h
- Timestamp:
- 01/20/10 07:34:44 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Bamgx/R2.h
r2862 r2863 1 #include <iostream>2 3 1 namespace bamg { 4 2 template <class R,class RR> class P2xP2; … … 26 24 template <class R,class RR> 27 25 class P2xP2 { // x ligne 1 y ligne2 28 29 friend std::ostream& operator <<(std::ostream& f, const P2xP2<R,RR> & c)30 { f << '[' << c.x << ',' << c.y << ']' <<std::flush ; return f; }31 26 32 27 friend P2<R,RR> operator*(P2<R,RR> c,P2xP2<R,RR> cc) … … 84 79 inline P2<R,RR> Orthogonal (const P2<R,RR> x) { 85 80 return P2<R,RR>(-x.y,x.x);} 86 87 template <class R,class RR>88 inline std::ostream& operator <<(std::ostream& f, const P2<R,RR> & c)89 { f << '[' << c.x << ',' << c.y <<']' <<std::flush ; return f; }90 81 }
Note:
See TracChangeset
for help on using the changeset viewer.