Diagonal line window defined on the 2D square grid. More...
#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. |
Diagonal line window defined on the 2D square grid.
An diag2d is centered and symmetric. its width (length) is odd.
For instance:
* o * o * x * o * o *
is defined with length = 5.
Definition at line 63 of file diag2d.hh.
mln::win::diag2d::diag2d | ( | unsigned | length | ) | [inline] |