#include <diag2d.hh>
Inherits classical_window_base< dpoint2d, diag2d >.
Public Member Functions | |
| diag2d (unsigned length) | |
| Constructor.   | |
| unsigned | length () const | 
| Give the diagonal length, that is, its width.   | |
An diag2d is centered and symmetric. its width (length) is odd.
For instance:
     *          o
     *        o
     *      x
     *    o
     *  o
     * | mln::win::diag2d::diag2d | ( | unsigned | length | ) |  [inline] | 
        
Constructor.
| [in] | length | Length, thus width, of the diagonal line. | 
length is odd. 
| unsigned mln::win::diag2d::length | ( | ) |  const [inline] | 
        
Give the diagonal length, that is, its width.
 1.5.9