LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
GeoDirectedLine.cxx
Go to the documentation of this file.
3 
4 namespace geoalgo {
5 
7 
9  double const y,
10  double const z,
11  double const dirx,
12  double const diry,
13  double const dirz)
14  : Line(x, y, z, x + dirx, y + diry, z + dirz)
15  {
17  }
18 
19  DirectedLine::DirectedLine(Point_t const& pt, Vector_t const& dir) : Line(pt, pt + dir)
20  {
22  }
23 
24  DirectedLine::DirectedLine(HalfLine const& l) : Line(l.Start(), l.Start() + l.Dir())
25  {
27  }
28 
30  {
31  return _pt2 - _pt1;
32  }
33 
34 }
Float_t x
Definition: compare.C:6
Class def header for a class HalfLine.
DirectedLine()
Default ctor.
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:276
Point_t _pt1
First point denoting infinite line.
Definition: GeoLine.h:63
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:30
TDirectory * dir
Definition: macro.C:5
Vector_t _pt2
Second point denoting infinite line.
Definition: GeoLine.h:64
Class def header for a class DirectedLine.
void check_and_raise(Point_t const &p1, Point_t const &p2) const
Compatibility check.
Definition: GeoLine.cxx:49