Generic line window defined on a given grid in the given dimension. More...
#include <line.hh>
Inherits classical_window_base< dpoint< M, C >, line< M, i, C > >.
Public Types | |
enum | |
Direction. More... | |
Public Member Functions | |
unsigned | length () const |
Give the line length. | |
line (unsigned length) | |
Constructor. | |
unsigned | size () const |
Give the line size, that is, its length. |
Generic line window defined on a given grid in the given dimension.
An line is centered and symmetric; so its length is odd.
M is the given grid on which the line is defined, i is the given dimension of the line end C is the type of the coordinates.
Definition at line 73 of file win/line.hh.
anonymous enum |
Direction.
Definition at line 76 of file win/line.hh.
mln::win::line< M, i, C >::line | ( | unsigned | length | ) | [inline] |
Constructor.
[in] | length | Length of the line. |
length
is odd. Definition at line 106 of file win/line.hh.
References mln::dpoint< G, C >::set_all().
unsigned mln::win::line< M, i, C >::length | ( | ) | const [inline] |
Give the line length.
Definition at line 125 of file win/line.hh.
unsigned mln::win::line< M, i, C >::size | ( | ) | const [inline] |
Give the line size, that is, its length.
Definition at line 132 of file win/line.hh.