#include <line.hh>
Inherits mln::internal::classical_window_base< mln::dpoint< M, C >, mln::win::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. |
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.
anonymous enum |
Direction.
mln::win::line< M, i, C >::line | ( | unsigned | length | ) | [inline] |
Constructor.
[in] | length | Length of the line. |
length
is odd. References mln::dpoint< G, C >::set_all().
unsigned mln::win::line< M, i, C >::length | ( | ) | const [inline] |
Give the line length.
unsigned mln::win::line< M, i, C >::size | ( | ) | const [inline] |
Give the line size, that is, its length.