MarlinUtil
1.12.1
|
Simple line trajectory. More...
#include <SimpleLine.h>
Public Member Functions | |
SimpleLine (LCVector3D ref, LCVector3D direction) | |
Construct Line from reference point and direction. | |
virtual LCVector3D | getPosition (double s, LCErrorMatrix *errors=0) const |
Position at path length s - s==0 corresponds to P.C.A to the origin. More... | |
virtual LCVector3D | getDirection (double s, LCErrorMatrix *errors=0) const |
Direction at path length s, i.e. More... | |
virtual LCErrorMatrix | getCovarianceMatrix (double s) const |
Full covariance Matrix of x,y,z,px,py,pz. More... | |
virtual double | getPathAt (const LCVector3D position) const |
Pathlength at point on trajectory closest to given position. More... | |
virtual double | getIntersectionWithPlane (LCPlane3D p, bool &pointExists) const |
Pathlength at closest intersection point with plane - undefined if pointExists==false. | |
virtual double | getIntersectionWithCylinder (const LCCylinder &cylinder, bool &pointExists) const |
Pathlength at closest intersection point with cylinder - undefined if pointExists==false. More... | |
Protected Attributes | |
LCLine3D | _line |
|
virtual |
|
virtual |
Direction at path length s, i.e.
(dx/ds,dy/ds,dz/ds)
s | path length |
errors | return argument - not computed if NULL |
Implements Trajectory.
References LCLine3D::direction().
|
virtual |
Pathlength at closest intersection point with cylinder - undefined if pointExists==false.
cylinder | cylinder object to intersect with |
Implements Trajectory.
References LCCylinder::distance(), LCCylinder::endPoint(), LCCylinder::length(), LCLine3D::position(), LCLine3D::projectPoint(), LCCylinder::radius(), and LCCylinder::startPoint().
|
virtual |
Pathlength at point on trajectory closest to given position.
In order to get the distance use for example:
LCVector3D pt = t.getPosition( t.getPathAtClosestPoint( p ) ) ;
double d = LCVector3D( pt - p ).mag() ;
Implements Trajectory.
References LCLine3D::projectPoint().
|
virtual |
Position at path length s - s==0 corresponds to P.C.A to the origin.
s | path length |
errors | return argument - not computed if NULL |
Implements Trajectory.
References LCLine3D::position().