\section{lib/common/taper.c File Reference}
\label{taper_8c}\index{lib/common/taper.\-c@{lib/common/taper.\-c}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include $<$math.\-h$>$}\\*
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$types.\-h$>$}\\*
{\ttfamily \#include $<$memory.\-h$>$}\\*
{\ttfamily \#include $<$logic.\-h$>$}\\*
{\ttfamily \#include $<$agxbuf.\-h$>$}\\*
{\ttfamily \#include $<$utils.\-h$>$}\\*
Include dependency graph for taper.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{taper_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf pathpoint}
\item 
struct {\bf vararr\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N}~20
\item 
\#define {\bf I\-N\-I\-T\-S\-Z}~2000
\item 
\#define {\bf D2\-R}(d)~({\bf M\-\_\-\-P\-I}$\ast$(d)/180.\-0)
\item 
\#define {\bf R2\-D}(r)~(180.\-0$\ast$(r)/{\bf M\-\_\-\-P\-I})
\item 
\#define {\bf moveto}(p, x, y)~addto(p,x,y)
\item 
\#define {\bf lineto}(p, x, y)~addto(p,x,y)
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef double($\ast$ {\bf radfunc\-\_\-t} )(double curlen, double totallen, double initwid)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf stroke\-\_\-t} $\ast$ {\bf taper} ({\bf bezier} $\ast$bez, {\bf radfunc\-\_\-t} radfunc, double initwid, {\bf int} linejoin, {\bf int} linecap)
\item 
{\bf stroke\-\_\-t} $\ast$ {\bf taper0} ({\bf bezier} $\ast$bez, double initwid)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{taper.\-c@{taper.\-c}!B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N@{B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N}}
\index{B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N@{B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N}!taper.c@{taper.\-c}}
\subsubsection[{B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define B\-E\-Z\-I\-E\-R\-S\-U\-B\-D\-I\-V\-I\-S\-I\-O\-N~20}\label{taper_8c_ae99e0eb11cf8feb2f8831ec9ac956fd0}


Definition at line 30 of file taper.\-c.

\index{taper.\-c@{taper.\-c}!D2\-R@{D2\-R}}
\index{D2\-R@{D2\-R}!taper.c@{taper.\-c}}
\subsubsection[{D2\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define D2\-R(
\begin{DoxyParamCaption}
\item[{}]{d}
\end{DoxyParamCaption}
)~({\bf M\-\_\-\-P\-I}$\ast$(d)/180.\-0)}\label{taper_8c_a2296039d11c271098cd0ea599f394545}


Definition at line 39 of file taper.\-c.



Referenced by taper().

\index{taper.\-c@{taper.\-c}!I\-N\-I\-T\-S\-Z@{I\-N\-I\-T\-S\-Z}}
\index{I\-N\-I\-T\-S\-Z@{I\-N\-I\-T\-S\-Z}!taper.c@{taper.\-c}}
\subsubsection[{I\-N\-I\-T\-S\-Z}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-N\-I\-T\-S\-Z~2000}\label{taper_8c_a5885debcbd2bf1fbba02a1c5b4e4fdb1}


Definition at line 33 of file taper.\-c.

\index{taper.\-c@{taper.\-c}!lineto@{lineto}}
\index{lineto@{lineto}!taper.c@{taper.\-c}}
\subsubsection[{lineto}]{\setlength{\rightskip}{0pt plus 5cm}\#define lineto(
\begin{DoxyParamCaption}
\item[{}]{p, }
\item[{}]{x, }
\item[{}]{y}
\end{DoxyParamCaption}
)~addto(p,x,y)}\label{taper_8c_ab2b6556ff83e8633e6b37336e66576e9}


Definition at line 45 of file taper.\-c.



Referenced by taper().

\index{taper.\-c@{taper.\-c}!moveto@{moveto}}
\index{moveto@{moveto}!taper.c@{taper.\-c}}
\subsubsection[{moveto}]{\setlength{\rightskip}{0pt plus 5cm}\#define moveto(
\begin{DoxyParamCaption}
\item[{}]{p, }
\item[{}]{x, }
\item[{}]{y}
\end{DoxyParamCaption}
)~addto(p,x,y)}\label{taper_8c_a219da3c41c337eaece9f9bb3116c8133}


Definition at line 44 of file taper.\-c.



Referenced by taper().

\index{taper.\-c@{taper.\-c}!R2\-D@{R2\-D}}
\index{R2\-D@{R2\-D}!taper.c@{taper.\-c}}
\subsubsection[{R2\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define R2\-D(
\begin{DoxyParamCaption}
\item[{}]{r}
\end{DoxyParamCaption}
)~(180.\-0$\ast$(r)/{\bf M\-\_\-\-P\-I})}\label{taper_8c_adf35594d9dae35768b5ea1825fa50fa0}


Definition at line 40 of file taper.\-c.



\subsection{Typedef Documentation}
\index{taper.\-c@{taper.\-c}!radfunc\-\_\-t@{radfunc\-\_\-t}}
\index{radfunc\-\_\-t@{radfunc\-\_\-t}!taper.c@{taper.\-c}}
\subsubsection[{radfunc\-\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}typedef double($\ast$ radfunc\-\_\-t)(double curlen, double totallen, double initwid)}\label{taper_8c_a6ac33cdb7d58c6a56503cd849bfcb6d5}


Definition at line 258 of file taper.\-c.



\subsection{Function Documentation}
\index{taper.\-c@{taper.\-c}!taper@{taper}}
\index{taper@{taper}!taper.c@{taper.\-c}}
\subsubsection[{taper}]{\setlength{\rightskip}{0pt plus 5cm}{\bf stroke\-\_\-t}$\ast$ taper (
\begin{DoxyParamCaption}
\item[{{\bf bezier} $\ast$}]{bez, }
\item[{{\bf radfunc\-\_\-t}}]{radfunc, }
\item[{double}]{initwid, }
\item[{{\bf int}}]{linejoin, }
\item[{{\bf int}}]{linecap}
\end{DoxyParamCaption}
)}\label{taper_8c_a575319604939766fce11f47efa5bfa79}


Definition at line 271 of file taper.\-c.



References pathpoint\-::bevel, vararr\-\_\-t\-::cnt, D2\-R, pathpoint\-::dir, pathpoint\-::dir2, dist(), F\-A\-L\-S\-E, pathpoint\-::lengthsofar, lineto, pathpoint\-::lout, moveto, N\-E\-W, vararr\-\_\-t\-::pts, T\-R\-U\-E, pathpoint\-::type, pathpoint\-::x, and pathpoint\-::y.



Referenced by taper0().

\index{taper.\-c@{taper.\-c}!taper0@{taper0}}
\index{taper0@{taper0}!taper.c@{taper.\-c}}
\subsubsection[{taper0}]{\setlength{\rightskip}{0pt plus 5cm}{\bf stroke\-\_\-t}$\ast$ taper0 (
\begin{DoxyParamCaption}
\item[{{\bf bezier} $\ast$}]{bez, }
\item[{double}]{initwid}
\end{DoxyParamCaption}
)}\label{taper_8c_af7872e45514b81b1ead27c802eea70ff}


Definition at line 423 of file taper.\-c.



References taper().

