LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeoDirectedLine.cxx
Go to the documentation of this file.
3 
4 namespace geoalgo {
5 
7 
9  const double y,
10  const double z,
11  const double dirx,
12  const double diry,
13  const double dirz)
14  : Line(x, y, z, x + dirx, y + diry, z + dirz)
15  {
17  }
18 
19  DirectedLine::DirectedLine(const Point_t& pt, const Vector_t& dir) : Line(pt, pt + dir)
20  {
22  }
23 
24  DirectedLine::DirectedLine(const HalfLine& 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(const Point_t &p1, const Point_t &p2) const
Compatibility check.
Definition: GeoLine.cxx:49