|
Milena (Olena)
User documentation 2.0a Id
|
Generic line window defined on a given grid in the given dimension. More...
#include <line.hh>
Inherits mln::internal::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.
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().
|
inline |
Give the line length.
Definition at line 125 of file win/line.hh.
|
inline |
Give the line size, that is, its length.
Definition at line 132 of file win/line.hh.