src/hugo/xy.h
changeset 897 ef09eee53b09
parent 539 fb261e3a9a0f
child 906 17f31d280385
equal deleted inserted replaced
0:525292d8fe90 1:d72b03593302
   116 	return  (x!=u.x) || (y!=u.y);
   116 	return  (x!=u.x) || (y!=u.y);
   117       };
   117       };
   118 
   118 
   119     };
   119     };
   120 
   120 
   121   ///Reading a plainvector from a stream
   121   ///Read a plainvector from a stream
       
   122 
       
   123   ///\relates xy
       
   124   ///
   122   template<typename T>
   125   template<typename T>
   123   inline
   126   inline
   124   std::istream& operator>>(std::istream &is, xy<T> &z)
   127   std::istream& operator>>(std::istream &is, xy<T> &z)
   125   {
   128   {
   126 
   129 
   127     is >> z.x >> z.y;
   130     is >> z.x >> z.y;
   128     return is;
   131     return is;
   129   }
   132   }
   130 
   133 
   131   ///Outputting a plainvector to a stream
   134   ///Write a plainvector to a stream
       
   135 
       
   136   ///\relates xy
       
   137   ///
   132   template<typename T>
   138   template<typename T>
   133   inline
   139   inline
   134   std::ostream& operator<<(std::ostream &os, xy<T> z)
   140   std::ostream& operator<<(std::ostream &os, xy<T> z)
   135   {
   141   {
   136     os << "(" << z.x << ", " << z.y << ")";
   142     os << "(" << z.x << ", " << z.y << ")";