#include <ball.hh>
Inherits mln::internal::classical_window_base< mln::dpoint< G, C >, mln::win::ball< G, C > >.
Public Member Functions | |
ball (unsigned diameter) | |
Constructor. | |
unsigned | diameter () const |
Give the ball diameter. |
A ball is centered and symmetric; so its diameter is odd.
G is the given grid on which the ball is defined and C is the type of coordinates.
mln::win::ball< G, C >::ball | ( | unsigned | diameter | ) | [inline] |
Constructor.
[in] | diameter | Diameter of the ball. |
diameter
is odd. References mln::literal::origin.
unsigned mln::win::ball< G, C >::diameter | ( | ) | const [inline] |
Give the ball diameter.