#include <rectangle2d.hh>
Inherits mln::internal::classical_window_base< mln::dpoint, mln::win::rectangle2d >.
Public Member Functions | |
| unsigned | area () const |
| Give the rectangle area. | |
| unsigned | height () const |
| Give the rectangle height. | |
| rectangle2d (unsigned height, unsigned width) | |
| Constructor. | |
| const std::vector< dpoint2d > & | std_vector () const |
| Give the std vector of delta-points. | |
| unsigned | width () const |
| Give the rectangle width. | |
A rectangle2d is a 2D window with rectangular shape. It is centered and symmetric.
For instance:
* o o o o o
* o o x o o
* o o o o o
* | mln::win::rectangle2d::rectangle2d | ( | unsigned | height, | |
| unsigned | width | |||
| ) | [inline] |
Constructor.
| [in] | height | Height of the rectangle2d. |
| [in] | width | Width of the rectangle2d. |
| unsigned mln::win::rectangle2d::area | ( | ) | const [inline] |
Give the rectangle area.
| unsigned mln::win::rectangle2d::height | ( | ) | const [inline] |
Give the rectangle height.
| const std::vector< dpoint2d > & mln::win::rectangle2d::std_vector | ( | ) | const [inline] |
Give the std vector of delta-points.
| unsigned mln::win::rectangle2d::width | ( | ) | const [inline] |
Give the rectangle width.
1.5.6