#include <octagon2d.hh>
Inherits mln::internal::classical_window_base< mln::dpoint, mln::win::octagon2d >.
Public Member Functions | |
unsigned | area () const |
Give the area. | |
unsigned | length () const |
Give the octagon length, that is, its width. | |
octagon2d (unsigned length) | |
Constructor. |
An octagon2d is centered and symmetric.
The length L of the octagon is such as L = 6 * l + 1 where l >= 0.
For instance:
* o o o * o o o o o * o o o o o o o * o o o x o o o * o o o o o o o * o o o o o * o o o *
mln::win::octagon2d::octagon2d | ( | unsigned | length | ) | [inline] |
Constructor.
[in] | length | Length, of the octagon. |
length
is such as length = 6*x + 1 where x >= 0.
unsigned mln::win::octagon2d::area | ( | ) | const [inline] |
Give the area.
unsigned mln::win::octagon2d::length | ( | ) | const [inline] |
Give the octagon length, that is, its width.