\section{Simple\-Line Class Reference}
\label{classSimpleLine}\index{Simple\-Line@{Simple\-Line}}


Simple line trajectory.  




{\ttfamily \#include $<$Simple\-Line.\-h$>$}

Inheritance diagram for Simple\-Line\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSimpleLine}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Simple\-Line} (L\-C\-Vector3\-D ref, L\-C\-Vector3\-D direction)\label{classSimpleLine_a0501c1a36a9d690865a4e9ed4290b8d3}

\begin{DoxyCompactList}\small\item\em Construct Line from reference point and direction. \end{DoxyCompactList}\item 
virtual L\-C\-Vector3\-D {\bf get\-Position} (double s, L\-C\-Error\-Matrix $\ast$errors=0) const 
\begin{DoxyCompactList}\small\item\em Position at path length s -\/ s==0 corresponds to P.\-C.\-A to the origin. \end{DoxyCompactList}\item 
virtual L\-C\-Vector3\-D {\bf get\-Direction} (double s, L\-C\-Error\-Matrix $\ast$errors=0) const 
\begin{DoxyCompactList}\small\item\em Direction at path length s, i.\-e. \end{DoxyCompactList}\item 
virtual L\-C\-Error\-Matrix {\bf get\-Covariance\-Matrix} (double s) const 
\begin{DoxyCompactList}\small\item\em Full covariance Matrix of x,y,z,px,py,pz. \end{DoxyCompactList}\item 
virtual double {\bf get\-Path\-At} (const L\-C\-Vector3\-D position) const 
\begin{DoxyCompactList}\small\item\em Pathlength at point on trajectory closest to given position. \end{DoxyCompactList}\item 
virtual double {\bf get\-Intersection\-With\-Plane} ({\bf L\-C\-Plane3\-D} p, bool \&point\-Exists) const \label{classSimpleLine_a7abdfc6b1be4b6a0bdddbeb2802b3fee}

\begin{DoxyCompactList}\small\item\em Pathlength at closest intersection point with plane -\/ undefined if point\-Exists==false. \end{DoxyCompactList}\item 
virtual double {\bf get\-Intersection\-With\-Cylinder} (const {\bf L\-C\-Cylinder} \&cylinder, bool \&point\-Exists) const 
\begin{DoxyCompactList}\small\item\em Pathlength at closest intersection point with cylinder -\/ undefined if point\-Exists==false. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
{\bf L\-C\-Line3\-D} {\bfseries \-\_\-line}\label{classSimpleLine_a625adc9dbecd024ab4de88cff5d0ad3c}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Simple line trajectory. 

\begin{DoxyAuthor}{Author}
F.\-Gaede, T.\-Kraemer, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Simple\-Line.\-h}{p.}{SimpleLine_8h_source},v 1.\-4 2006-\/10-\/25 09\-:21\-:37 tkraemer Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{Simple\-Line@{Simple\-Line}!get\-Covariance\-Matrix@{get\-Covariance\-Matrix}}
\index{get\-Covariance\-Matrix@{get\-Covariance\-Matrix}!SimpleLine@{Simple\-Line}}
\subsubsection[{get\-Covariance\-Matrix}]{\setlength{\rightskip}{0pt plus 5cm}L\-C\-Error\-Matrix Simple\-Line\-::get\-Covariance\-Matrix (
\begin{DoxyParamCaption}
\item[{double}]{s}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSimpleLine_a1619147f3eee5d027574d940ee3023ee}


Full covariance Matrix of x,y,z,px,py,pz. 


\begin{DoxyParams}{Parameters}
{\em s} & path length \\
\hline
\end{DoxyParams}


Implements {\bf Trajectory} \doxyref{}{p.}{classTrajectory_adb9992b0e405f7d6c2f9cabf77eaac40}.

\index{Simple\-Line@{Simple\-Line}!get\-Direction@{get\-Direction}}
\index{get\-Direction@{get\-Direction}!SimpleLine@{Simple\-Line}}
\subsubsection[{get\-Direction}]{\setlength{\rightskip}{0pt plus 5cm}L\-C\-Vector3\-D Simple\-Line\-::get\-Direction (
\begin{DoxyParamCaption}
\item[{double}]{s, }
\item[{L\-C\-Error\-Matrix $\ast$}]{errors = {\ttfamily 0}}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSimpleLine_a38c9faf7eda7c9f8a30c27515d7ccf4b}


Direction at path length s, i.\-e. 

(dx/ds,dy/ds,dz/ds) 
\begin{DoxyParams}{Parameters}
{\em s} & path length \\
\hline
{\em errors} & return argument -\/ not computed if N\-U\-L\-L \\
\hline
\end{DoxyParams}


Implements {\bf Trajectory} \doxyref{}{p.}{classTrajectory_adeab59baf8f5ec5690310f65941ea36d}.



References L\-C\-Line3\-D\-::direction().

\index{Simple\-Line@{Simple\-Line}!get\-Intersection\-With\-Cylinder@{get\-Intersection\-With\-Cylinder}}
\index{get\-Intersection\-With\-Cylinder@{get\-Intersection\-With\-Cylinder}!SimpleLine@{Simple\-Line}}
\subsubsection[{get\-Intersection\-With\-Cylinder}]{\setlength{\rightskip}{0pt plus 5cm}double Simple\-Line\-::get\-Intersection\-With\-Cylinder (
\begin{DoxyParamCaption}
\item[{const {\bf L\-C\-Cylinder} \&}]{cylinder, }
\item[{bool \&}]{point\-Exists}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSimpleLine_a750753d4305ca703aa58379959e42cd7}


Pathlength at closest intersection point with cylinder -\/ undefined if point\-Exists==false. 


\begin{DoxyParams}{Parameters}
{\em cylinder} & cylinder object to intersect with \\
\hline
\end{DoxyParams}


Implements {\bf Trajectory} \doxyref{}{p.}{classTrajectory_ab227f74a07f49270fe57e1831b9eb260}.



References L\-C\-Cylinder\-::distance(), L\-C\-Cylinder\-::end\-Point(), L\-C\-Cylinder\-::length(), L\-C\-Line3\-D\-::position(), L\-C\-Line3\-D\-::project\-Point(), L\-C\-Cylinder\-::radius(), and L\-C\-Cylinder\-::start\-Point().

\index{Simple\-Line@{Simple\-Line}!get\-Path\-At@{get\-Path\-At}}
\index{get\-Path\-At@{get\-Path\-At}!SimpleLine@{Simple\-Line}}
\subsubsection[{get\-Path\-At}]{\setlength{\rightskip}{0pt plus 5cm}double Simple\-Line\-::get\-Path\-At (
\begin{DoxyParamCaption}
\item[{const L\-C\-Vector3\-D}]{position}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSimpleLine_a3ad316d3946139d5ae7b66ec4a7596e9}


Pathlength at point on trajectory closest to given position. 

In order to get the distance use for example\-: \par
 L\-C\-Vector3\-D pt = t.\-get\-Position( t.\-get\-Path\-At\-Closest\-Point( p ) ) ; \par
 double d = L\-C\-Vector3\-D( pt -\/ p ).mag() ; \par
 

Implements {\bf Trajectory} \doxyref{}{p.}{classTrajectory_a8cd9ef6888429a89e6791d84af1d69cc}.



References L\-C\-Line3\-D\-::project\-Point().

\index{Simple\-Line@{Simple\-Line}!get\-Position@{get\-Position}}
\index{get\-Position@{get\-Position}!SimpleLine@{Simple\-Line}}
\subsubsection[{get\-Position}]{\setlength{\rightskip}{0pt plus 5cm}L\-C\-Vector3\-D Simple\-Line\-::get\-Position (
\begin{DoxyParamCaption}
\item[{double}]{s, }
\item[{L\-C\-Error\-Matrix $\ast$}]{errors = {\ttfamily 0}}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSimpleLine_a92b8764a34e7f6a709c2ef6c6e1a6edb}


Position at path length s -\/ s==0 corresponds to P.\-C.\-A to the origin. 


\begin{DoxyParams}{Parameters}
{\em s} & path length \\
\hline
{\em errors} & return argument -\/ not computed if N\-U\-L\-L \\
\hline
\end{DoxyParams}


Implements {\bf Trajectory} \doxyref{}{p.}{classTrajectory_a442f6abacb3355a72a86b96feac328c1}.



References L\-C\-Line3\-D\-::position().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Simple\-Line.\-h\item 
Simple\-Line.\-cc\end{DoxyCompactItemize}
