All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
geoalgo::DirectedLine Class Reference

Representation of a 3D infinite line. Defines an infinite 3D line with a point and a direction. Line points are constructed like this: (pt, dir) -> (pt, pt+dir) It hides the point attributes from users for protecting the dimensionality. More...

#include <GeoDirectedLine.h>

Inheritance diagram for geoalgo::DirectedLine:
geoalgo::Line geoalgo::Line

Public Member Functions

 DirectedLine ()
 Default ctor. More...
 
 DirectedLine (const double x, const double y, const double z, const double dirx, const double diry, const double dirz)
 Alternative ctor (1) More...
 
 DirectedLine (const Point_t &pt, const Vector_t &dir)
 Altenartive ctor (2) More...
 
 DirectedLine (const HalfLine &l)
 Alternative ctor (3) More...
 
template<class T , class U >
 DirectedLine (const T &pt, const U &dir)
 Alternative ctor using template (3) More...
 
Vector_t Dir () const
 
 DirectedLine ()
 Default ctor. More...
 
 DirectedLine (const double x, const double y, const double z, const double dirx, const double diry, const double dirz)
 Alternative ctor (1) More...
 
 DirectedLine (const Point_t &pt, const Vector_t &dir)
 Altenartive ctor (2) More...
 
 DirectedLine (const HalfLine &l)
 Alternative ctor (3) More...
 
template<class T , class U >
 DirectedLine (const T &pt, const U &dir)
 Alternative ctor using template (3) More...
 
Vector_t Dir () const
 
- Public Member Functions inherited from geoalgo::Line
 Line ()
 Default constructor. More...
 
virtual ~Line ()
 Default destructor. More...
 
 Line (const double x1, const double y1, const double z1, const double x2, const double y2, const double z2)
 Alternative ctor (1) More...
 
 Line (const Point_t &pt1, const Point_t &pt2)
 Altenartive ctor (2) More...
 
const Point_tPt1 () const
 Start getter. More...
 
const Point_tPt2 () const
 Direction getter. More...
 
void Pt1 (const double x, const double y, const double z)
 Pt1 setter. More...
 
void Pt2 (const double x, const double y, const double z)
 Pt2 setter. More...
 
template<class T , class U >
 Line (const T &pt1, const U &pt2)
 Alternative ctor using template (3) More...
 
template<class T >
void Pt1 (const T &pt1)
 Pt1 setter template. More...
 
template<class T >
void Pt2 (const T &pt2)
 Pt2 setter template. More...
 
 Line ()
 Default constructor. More...
 
virtual ~Line ()
 Default destructor. More...
 
 Line (const double x1, const double y1, const double z1, const double x2, const double y2, const double z2)
 Alternative ctor (1) More...
 
 Line (const Point_t &pt1, const Point_t &pt2)
 Altenartive ctor (2) More...
 
const Point_tPt1 () const
 Start getter. More...
 
const Point_tPt2 () const
 Direction getter. More...
 
void Pt1 (const double x, const double y, const double z)
 Pt1 setter. More...
 
void Pt2 (const double x, const double y, const double z)
 Pt2 setter. More...
 
template<class T , class U >
 Line (const T &pt1, const U &pt2)
 Alternative ctor using template (3) More...
 
template<class T >
void Pt1 (const T &pt1)
 Pt1 setter template. More...
 
template<class T >
void Pt2 (const T &pt2)
 Pt2 setter template. More...
 

Additional Inherited Members

- Protected Member Functions inherited from geoalgo::Line
void check_and_raise (const Point_t &p1, const Point_t &p2) const
 Compatibility check. More...
 
void check_and_raise (const Point_t &p1, const Point_t &p2) const
 Compatibility check. More...
 
- Protected Attributes inherited from geoalgo::Line
Point_t _pt1
 First point denoting infinite line. More...
 
Vector_t _pt2
 Second point denoting infinite line. More...
 

Detailed Description

Representation of a 3D infinite line. Defines an infinite 3D line with a point and a direction. Line points are constructed like this: (pt, dir) -> (pt, pt+dir) It hides the point attributes from users for protecting the dimensionality.

Definition at line 32 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.h.

Constructor & Destructor Documentation

geoalgo::DirectedLine::DirectedLine ( )

Default ctor.

Definition at line 6 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx.

6  : Line()
7  {}
geoalgo::DirectedLine::DirectedLine ( const double  x,
const double  y,
const double  z,
const double  dirx,
const double  diry,
const double  dirz 
)

Alternative ctor (1)

Definition at line 9 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx.

11  : Line( x, y, z, x+dirx, y+diry, z+dirz)
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
Point_t _pt1
First point denoting infinite line.
process_name opflash particleana ie ie y
Vector_t _pt2
Second point denoting infinite line.
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
geoalgo::DirectedLine::DirectedLine ( const Point_t pt,
const Vector_t dir 
)

Altenartive ctor (2)

Definition at line 14 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx.

15  : Line( pt, pt+dir)
Point_t _pt1
First point denoting infinite line.
tuple dir
Definition: dropbox.py:28
Vector_t _pt2
Second point denoting infinite line.
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
geoalgo::DirectedLine::DirectedLine ( const HalfLine l)

Alternative ctor (3)

Definition at line 18 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx.

19  : Line( l.Start(), l.Start()+l.Dir() )
Point_t _pt1
First point denoting infinite line.
Vector_t _pt2
Second point denoting infinite line.
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
template<class T , class U >
geoalgo::DirectedLine::DirectedLine ( const T &  pt,
const U &  dir 
)
inline

Alternative ctor using template (3)

Definition at line 50 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.h.

51  : Line(Point_t(pt), Point_t(pt+dir))
52  {}
tuple dir
Definition: dropbox.py:28
geoalgo::DirectedLine::DirectedLine ( )

Default ctor.

geoalgo::DirectedLine::DirectedLine ( const double  x,
const double  y,
const double  z,
const double  dirx,
const double  diry,
const double  dirz 
)

Alternative ctor (1)

geoalgo::DirectedLine::DirectedLine ( const Point_t pt,
const Vector_t dir 
)

Altenartive ctor (2)

geoalgo::DirectedLine::DirectedLine ( const HalfLine l)

Alternative ctor (3)

template<class T , class U >
geoalgo::DirectedLine::DirectedLine ( const T &  pt,
const U &  dir 
)
inline

Alternative ctor using template (3)

Definition at line 46 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoDirectedLine.h.

47  : Line(Point_t(pt), Point_t(pt+dir))
48  {}
tuple dir
Definition: dropbox.py:28

Member Function Documentation

Vector_t geoalgo::DirectedLine::Dir ( ) const
Vector_t geoalgo::DirectedLine::Dir ( ) const

Definition at line 22 of file larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx.

23  { return _pt2 - _pt1; }
Point_t _pt1
First point denoting infinite line.
Vector_t _pt2
Second point denoting infinite line.

The documentation for this class was generated from the following files: