\doxysection{geo Namespace Reference}
\hypertarget{namespacegeo}{}\label{namespacegeo}\index{geo@{geo}}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} \mbox{\hyperlink{namespacegeo_a5ce3f8b129eff84c2eacabebf1e2418d}{cosine}} (const \mbox{\hyperlink{Geometry_8hpp_a4f81b2c435433ec5114700bb5b93edfe}{Vector\+\_\+2}} \&v1, const \mbox{\hyperlink{Geometry_8hpp_a4f81b2c435433ec5114700bb5b93edfe}{Vector\+\_\+2}} \&v2)
\begin{DoxyCompactList}\small\item\em Compute the cosine of the angle between two 2D vectors. \end{DoxyCompactList}\item 
float \mbox{\hyperlink{namespacegeo_a84559fe38870230202150f8a4d4c5e11}{distance45}} (const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&A, const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&B)
\item 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \mbox{\hyperlink{namespacegeo_a5dbb2c1950a0c2f5b18daeab24d58715}{expand\+Box}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box, \mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} m)
\item 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \mbox{\hyperlink{namespacegeo_a1ce43c55286f507e89eb2a9df1c66c65}{expand\+Box\+\_\+r}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box, \mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} m\+\_\+rel)
\item 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \mbox{\hyperlink{namespacegeo_ab6cc3a2d839361d3c5c824ea7fc8e63d}{crop\+Box}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box, const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&crop)
\item 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} \mbox{\hyperlink{namespacegeo_adea5a178ae4a27ce6de0e6f2e0312bb9}{bbox\+\_\+area}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box)
\item 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} \mbox{\hyperlink{namespacegeo_ac12add9abe325f5008857cb90ed719fd}{bbox\+\_\+diameter}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box)
\item 
std\+::string \mbox{\hyperlink{namespacegeo_a58961221797189b34aebe73c0d1bc9e3}{to\+\_\+string}} (const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&box)
\item 
\mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \mbox{\hyperlink{namespacegeo_a81c0eabb6a649ed702506ca8509887c8}{closest\+\_\+on}} (const \mbox{\hyperlink{Geometry_8hpp_a02a18f6c8cbca72a0d964ee46b88e852}{Segment\+\_\+2}} \&s, const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&o)
\end{DoxyCompactItemize}


\label{doc-func-members}
\Hypertarget{namespacegeo_doc-func-members}
\doxysubsection{Function Documentation}
\Hypertarget{namespacegeo_adea5a178ae4a27ce6de0e6f2e0312bb9}\index{geo@{geo}!bbox\_area@{bbox\_area}}
\index{bbox\_area@{bbox\_area}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{bbox\_area()}{bbox\_area()}}
{\footnotesize\ttfamily \label{namespacegeo_adea5a178ae4a27ce6de0e6f2e0312bb9} 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} geo\+::bbox\+\_\+area (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_ac12add9abe325f5008857cb90ed719fd}\index{geo@{geo}!bbox\_diameter@{bbox\_diameter}}
\index{bbox\_diameter@{bbox\_diameter}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{bbox\_diameter()}{bbox\_diameter()}}
{\footnotesize\ttfamily \label{namespacegeo_ac12add9abe325f5008857cb90ed719fd} 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} geo\+::bbox\+\_\+diameter (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_a81c0eabb6a649ed702506ca8509887c8}\index{geo@{geo}!closest\_on@{closest\_on}}
\index{closest\_on@{closest\_on}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{closest\_on()}{closest\_on()}}
{\footnotesize\ttfamily \label{namespacegeo_a81c0eabb6a649ed702506ca8509887c8} 
\mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} geo\+::closest\+\_\+on (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a02a18f6c8cbca72a0d964ee46b88e852}{Segment\+\_\+2}} \&}]{s}{, }\item[{const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&}]{o}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_a5ce3f8b129eff84c2eacabebf1e2418d}\index{geo@{geo}!cosine@{cosine}}
\index{cosine@{cosine}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{cosine()}{cosine()}}
{\footnotesize\ttfamily \label{namespacegeo_a5ce3f8b129eff84c2eacabebf1e2418d} 
\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} geo\+::cosine (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a4f81b2c435433ec5114700bb5b93edfe}{Vector\+\_\+2}} \&}]{v1}{, }\item[{const \mbox{\hyperlink{Geometry_8hpp_a4f81b2c435433ec5114700bb5b93edfe}{Vector\+\_\+2}} \&}]{v2}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Compute the cosine of the angle between two 2D vectors. 

\Hypertarget{namespacegeo_ab6cc3a2d839361d3c5c824ea7fc8e63d}\index{geo@{geo}!cropBox@{cropBox}}
\index{cropBox@{cropBox}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{cropBox()}{cropBox()}}
{\footnotesize\ttfamily \label{namespacegeo_ab6cc3a2d839361d3c5c824ea7fc8e63d} 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} geo\+::crop\+Box (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{, }\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{crop}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_a84559fe38870230202150f8a4d4c5e11}\index{geo@{geo}!distance45@{distance45}}
\index{distance45@{distance45}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{distance45()}{distance45()}}
{\footnotesize\ttfamily \label{namespacegeo_a84559fe38870230202150f8a4d4c5e11} 
float geo\+::distance45 (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&}]{A}{, }\item[{const \mbox{\hyperlink{Geometry_8hpp_afc4c0ad283d114e751095b675d814ac9}{Point\+\_\+2}} \&}]{B}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Compute the 45-\/degree or "{}\+Queen\textquotesingle{}s"{} distance between 2 points. This is analogous to the Manhattan distance but with 45° rather than 90° steps. \Hypertarget{namespacegeo_a5dbb2c1950a0c2f5b18daeab24d58715}\index{geo@{geo}!expandBox@{expandBox}}
\index{expandBox@{expandBox}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{expandBox()}{expandBox()}}
{\footnotesize\ttfamily \label{namespacegeo_a5dbb2c1950a0c2f5b18daeab24d58715} 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} geo\+::expand\+Box (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{, }\item[{\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{m}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_a1ce43c55286f507e89eb2a9df1c66c65}\index{geo@{geo}!expandBox\_r@{expandBox\_r}}
\index{expandBox\_r@{expandBox\_r}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{expandBox\_r()}{expandBox\_r()}}
{\footnotesize\ttfamily \label{namespacegeo_a1ce43c55286f507e89eb2a9df1c66c65} 
\mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} geo\+::expand\+Box\+\_\+r (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{, }\item[{\mbox{\hyperlink{Defs_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{m\+\_\+rel}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\Hypertarget{namespacegeo_a58961221797189b34aebe73c0d1bc9e3}\index{geo@{geo}!to\_string@{to\_string}}
\index{to\_string@{to\_string}!geo@{geo}}
\doxysubsubsection{\texorpdfstring{to\_string()}{to\_string()}}
{\footnotesize\ttfamily \label{namespacegeo_a58961221797189b34aebe73c0d1bc9e3} 
std\+::string geo\+::to\+\_\+string (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Geometry_8hpp_a068b9bdc0c4b930c5c7199b6616c4402}{Bbox\+\_\+2}} \&}]{box}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

