src/include/xy.h
changeset 487 11ad69691d18
parent 432 a51ba0e51a3a
child 491 4804c967543d
equal deleted inserted replaced
0:6f32fc959487 1:68c2d0fdd786
    12 ///a two dimensional vector with the usual
    12 ///a two dimensional vector with the usual
    13 /// operations.
    13 /// operations.
    14 ///
    14 ///
    15 /// The class \ref hugo::BoundingBox "BoundingBox" can be used to determine
    15 /// The class \ref hugo::BoundingBox "BoundingBox" can be used to determine
    16 /// the rectangular bounding box a set of \ref hugo::xy "xy"'s.
    16 /// the rectangular bounding box a set of \ref hugo::xy "xy"'s.
       
    17 ///
       
    18 ///\author Attila Bernath
    17 
    19 
    18 
    20 
    19 namespace hugo {
    21 namespace hugo {
    20 
    22 
    21   /// \addtogroup misc
    23   /// \addtogroup misc
    22   /// @{
    24   /// @{
    23 
    25 
    24 /** \brief
    26   /// A two dimensional vector (plainvector) implementation
    25 2 dimensional vector (plainvector) implementation
    27 
    26 
    28   /// A two dimensional vector (plainvector) implementation
    27 */
    29   ///with the usual vector
       
    30   /// operators.
       
    31   ///
       
    32   ///\author Attila Bernath
    28   template<typename T>
    33   template<typename T>
    29     class xy {
    34     class xy {
    30 
    35 
    31     public:
    36     public:
    32 
    37 
   131     os << "(" << z.x << ", " << z.y << ")";
   136     os << "(" << z.x << ", " << z.y << ")";
   132     return os;
   137     return os;
   133   }
   138   }
   134 
   139 
   135 
   140 
   136   /** \brief
   141   /// A class to calculate or store the bounding box of plainvectors.
   137      Implementation of a bounding box of plainvectors.
   142 
   138      
   143   /// A class to calculate or store the bounding box of plainvectors.
   139   */
   144   ///
       
   145   ///\author Attila Bernath
   140   template<typename T>
   146   template<typename T>
   141     class BoundingBox {
   147     class BoundingBox {
   142       xy<T> bottom_left, top_right;
   148       xy<T> bottom_left, top_right;
   143       bool _empty;
   149       bool _empty;
   144     public:
   150     public: