LArSoft  v10_04_05
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(double const x,
40  double const y,
41  double const z,
42  double const dirx,
43  double const diry,
44  double const dirz);
45 
47  DirectedLine(Point_t const& pt, Vector_t const& dir);
48 
50  DirectedLine(HalfLine const& l);
51 
53  template <class T, class U>
54  DirectedLine(T const& pt, U const& 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()
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
DirectedLine(T const &pt, U const &dir)
Alternative ctor using template (3)
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