LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
GeoDirectedLine.cxx
Go to the documentation of this file.
1 #ifndef BASICTOOL_GEODIRECTEDLINE_CXX
2 #define BASICTOOL_GEODIRECTEDLINE_CXX
3 
4 #include "GeoDirectedLine.h"
5 
6 namespace geoalgo {
7 
9  {}
10 
11  DirectedLine::DirectedLine(const double x, const double y, const double z,
12  const double dirx, const double diry, const double dirz)
13  : Line( x, y, z, x+dirx, y+diry, z+dirz)
15 
17  : Line( pt, pt+dir)
19 
21  : Line( l.Start(), l.Start()+l.Dir() )
23 
25  { return _pt2 - _pt1; }
26 
27 }
28 #endif
29 
30 
Float_t x
Definition: compare.C:6
DirectedLine()
Default ctor.
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:279
Point_t _pt1
First point denoting infinite line.
Definition: GeoLine.h:61
Vector_t Dir() const
TMarker * pt
Definition: egs.C:25
Representation of a 3D infinite line. Defines an infinite 3D line by having 2 points which completely...
Definition: GeoLine.h:27
Representation of a 3D semi-infinite line. Defines a semi-infinite 3D line by having a start point (P...
Definition: GeoHalfLine.h:26
TDirectory * dir
Definition: macro.C:5
Vector_t _pt2
Second point denoting infinite line.
Definition: GeoLine.h:62
Class def header for a class DirectedLine.
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
Definition: GeoLine.cxx:43