18 lines
2.0 KiB
TeX
18 lines
2.0 KiB
TeX
\hypertarget{utils_8cpp_source}{}\doxysection{utils.\+cpp}
|
|
\label{utils_8cpp_source}\index{src/utils.cpp@{src/utils.cpp}}
|
|
\mbox{\hyperlink{utils_8cpp}{Go to the documentation of this file.}}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00001}00001 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{utils_8h}{utils.h}}"{}}}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00002}00002 }
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00003}\mbox{\hyperlink{utils_8h_a8d01e61a45fe7072e45f22044013e358}{00003}} \textcolor{keywordtype}{bool} \mbox{\hyperlink{utils_8cpp_a8d01e61a45fe7072e45f22044013e358}{areLinesColliding}}(\textcolor{keywordtype}{unsigned} start1, \textcolor{keywordtype}{unsigned} end1, \textcolor{keywordtype}{unsigned} start2, \textcolor{keywordtype}{unsigned} end2)\{}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00004}00004 \textcolor{keywordflow}{return} start1 < end2 == start2 < end1;}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00005}00005 \textcolor{comment}{// if it returns true, lines are colliding. I like truth tables}}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00006}00006 \}}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00007}00007 }
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00008}\mbox{\hyperlink{utils_8h_a984f84273044b866085f08117f942b8f}{00008}} \textcolor{keywordtype}{void} \mbox{\hyperlink{utils_8cpp_a984f84273044b866085f08117f942b8f}{applyTransformation}}(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& pos, \textcolor{keywordtype}{unsigned} sizeFrom, \textcolor{keywordtype}{unsigned} sizeTo)\{}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00009}00009 pos += \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(sizeFrom/2, sizeFrom/2);}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00010}00010 pos -\/= \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(sizeTo/2, sizeTo/2);}
|
|
\DoxyCodeLine{\Hypertarget{utils_8cpp_source_l00011}00011 \}}
|
|
|
|
\end{DoxyCode}
|