LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
GeoDirectedLine.h
Go to the documentation of this file.
1 
14 #ifndef BASICTOOL_GEODIRECTEDLINE_H
15 #define BASICTOOL_GEODIRECTEDLINE_H
16 
17 #include "GeoLine.h"
18 
19 namespace geoalgo {
28  class DirectedLine : public Line {
29 
30  public:
31 
33  DirectedLine();
34 
36  DirectedLine(const double x, const double y, const double z,
37  const double dirx, const double diry, const double dirz);
38 
40  DirectedLine(const Point_t& pt, const Vector_t& dir);
41 
43  DirectedLine(const HalfLine& l);
44 
46  template <class T, class U> DirectedLine(const T& pt, const U& dir)
47  : Line(Point_t(pt), Point_t(pt+dir))
48  {}
49 
50  Vector_t Dir() const;
51 
52  };
53 
55 }
56 #endif
57  // end of doxygen group
58 
Float_t x
Definition: compare.C:6
DirectedLine(const T &pt, const U &dir)
Alternative ctor using template (3)
DirectedLine()
Default ctor.
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:279
Class def header for a class Line.
DirectedLine DirectedLine_t
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 infinite line. Defines an infinite 3D line with a point and a direction...
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