\hypertarget{a00453}{
\section{mln::win::rectangle2d Struct Reference}
\label{da/dc3/a00453}\index{mln::win::rectangle2d@{mln::win::rectangle2d}}
}


Rectangular window defined on the 2D square grid.  




{\ttfamily \#include $<$rectangle2d.hh$>$}



Inherits classical\_\-window\_\-base$<$ dpoint2d, rectangle2d $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{a00453_a6f6993ead7269700b8812022d7f5c3fe}{area} () const 
\begin{DoxyCompactList}\small\item\em Give the rectangle area. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00453_a6a2361a8115c7b3dd0c20864dbb2f4b9}{height} () const 
\begin{DoxyCompactList}\small\item\em Give the rectangle height. \item\end{DoxyCompactList}\item 
\hyperlink{a00453_a1bdfc0aba651caa0cbe092e44958b8a8}{rectangle2d} (unsigned height, unsigned width)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
const std::vector$<$ \hyperlink{a00178}{dpoint2d} $>$ \& \hyperlink{a00453_a9643d491771eb7456b4cfe12c324670f}{std\_\-vector} () const 
\begin{DoxyCompactList}\small\item\em Give the std vector of delta-\/points. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00453_a57c497158cc403c61a31ccdc7de0dd13}{width} () const 
\begin{DoxyCompactList}\small\item\em Give the rectangle width. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Rectangular window defined on the 2D square grid. A \hyperlink{a00453}{rectangle2d} is a 2D window with rectangular shape. It is centered and symmetric.

For instance: \begin{DoxyVerb}
     *  o o o o o
     *  o o x o o
     *  o o o o o
     * \end{DoxyVerb}
 is defined with height = 3 and width = 5. 

Definition at line 64 of file rectangle2d.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00453_a1bdfc0aba651caa0cbe092e44958b8a8}{
\index{mln::win::rectangle2d@{mln::win::rectangle2d}!rectangle2d@{rectangle2d}}
\index{rectangle2d@{rectangle2d}!mln::win::rectangle2d@{mln::win::rectangle2d}}
\subsubsection[{rectangle2d}]{\setlength{\rightskip}{0pt plus 5cm}mln::win::rectangle2d::rectangle2d (
\begin{DoxyParamCaption}
\item[{unsigned}]{ height, }
\item[{unsigned}]{ width}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/dc3/a00453_a1bdfc0aba651caa0cbe092e44958b8a8}


Constructor. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em height}]Height of the \hyperlink{a00453}{rectangle2d}. \item[\mbox{\tt[in]} {\em width}]Width of the \hyperlink{a00453}{rectangle2d}.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
Height and width are odd. 
\end{DoxyPrecond}


Definition at line 106 of file rectangle2d.hh.



\subsection{Member Function Documentation}
\hypertarget{a00453_a6f6993ead7269700b8812022d7f5c3fe}{
\index{mln::win::rectangle2d@{mln::win::rectangle2d}!area@{area}}
\index{area@{area}!mln::win::rectangle2d@{mln::win::rectangle2d}}
\subsubsection[{area}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::rectangle2d::area (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/dc3/a00453_a6f6993ead7269700b8812022d7f5c3fe}


Give the rectangle area. 



Definition at line 132 of file rectangle2d.hh.

\hypertarget{a00453_a6a2361a8115c7b3dd0c20864dbb2f4b9}{
\index{mln::win::rectangle2d@{mln::win::rectangle2d}!height@{height}}
\index{height@{height}!mln::win::rectangle2d@{mln::win::rectangle2d}}
\subsubsection[{height}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::rectangle2d::height (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/dc3/a00453_a6a2361a8115c7b3dd0c20864dbb2f4b9}


Give the rectangle height. 



Definition at line 120 of file rectangle2d.hh.

\hypertarget{a00453_a9643d491771eb7456b4cfe12c324670f}{
\index{mln::win::rectangle2d@{mln::win::rectangle2d}!std\_\-vector@{std\_\-vector}}
\index{std\_\-vector@{std\_\-vector}!mln::win::rectangle2d@{mln::win::rectangle2d}}
\subsubsection[{std\_\-vector}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf dpoint2d} $>$ \& mln::win::rectangle2d::std\_\-vector (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/dc3/a00453_a9643d491771eb7456b4cfe12c324670f}


Give the std vector of delta-\/points. 



Definition at line 145 of file rectangle2d.hh.

\hypertarget{a00453_a57c497158cc403c61a31ccdc7de0dd13}{
\index{mln::win::rectangle2d@{mln::win::rectangle2d}!width@{width}}
\index{width@{width}!mln::win::rectangle2d@{mln::win::rectangle2d}}
\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::rectangle2d::width (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{da/dc3/a00453_a57c497158cc403c61a31ccdc7de0dd13}


Give the rectangle width. 



Definition at line 126 of file rectangle2d.hh.

