LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeoDirectedLine.h
Go to the documentation of this file.
1 
14 #ifndef BASICTOOL_GEODIRECTEDLINE_H
15 #define BASICTOOL_GEODIRECTEDLINE_H
16 
19 
20 namespace geoalgo {
21 
22  class HalfLine;
23 
32  class DirectedLine : public Line {
33 
34  public:
36  DirectedLine();
37 
39  DirectedLine(const double x,
40  const double y,
41  const double z,
42  const double dirx,
43  const double diry,
44  const double dirz);
45 
47  DirectedLine(const Point_t& pt, const Vector_t& dir);
48 
50  DirectedLine(const HalfLine& l);
51 
53  template <class T, class U>
54  DirectedLine(const T& pt, const U& dir) : Line(Point_t(pt), Point_t(pt + dir))
55  {}
56 
57  Vector_t Dir() const;
58  };
59 
61 }
62 #endif
63  // end of doxygen group
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:276
Class def header for a class Line.
DirectedLine DirectedLine_t
Class def header for a class Point and Vector.
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:30
TDirectory * dir
Definition: macro.C:5