Representation of a simple 3D line segment Defines a finite 3D straight line by having the start and end position (Point_t).
.
More...
#include <GeoLineSegment.h>
Public Member Functions | |
LineSegment () | |
Default constructor. More... | |
virtual | ~LineSegment () |
Default destructor. More... | |
LineSegment (const double start_x, const double start_y, const double start_z, const double end_x, const double end_y, const double end_z) | |
Alternative ctor (1) More... | |
LineSegment (const Point_t &start, const Point_t &end) | |
Altenartive ctor (2) More... | |
const Point_t & | Start () const |
Start getter. More... | |
const Point_t & | End () const |
End getter. More... | |
const Vector_t | Dir () const |
Direction getter. More... | |
void | Start (const double x, const double y, const double z) |
Start setter. More... | |
void | End (const double x, const double y, const double z) |
End setter. More... | |
template<class T , class U > | |
LineSegment (const T &start, const U &end) | |
Alternative ctor using template (3) More... | |
LineSegment () | |
Default constructor. More... | |
virtual | ~LineSegment () |
Default destructor. More... | |
LineSegment (const double start_x, const double start_y, const double start_z, const double end_x, const double end_y, const double end_z) | |
Alternative ctor (1) More... | |
LineSegment (const Point_t &start, const Point_t &end) | |
Altenartive ctor (2) More... | |
const Point_t & | Start () const |
Start getter. More... | |
const Point_t & | End () const |
End getter. More... | |
const Vector_t | Dir () const |
Direction getter. More... | |
void | Start (const double x, const double y, const double z) |
Start setter. More... | |
void | End (const double x, const double y, const double z) |
End setter. More... | |
template<class T , class U > | |
LineSegment (const T &start, const U &end) | |
Alternative ctor using template (3) More... | |
Protected Member Functions | |
void | DirReset () |
Internal function to reset direction. More... | |
void | DirReset () |
Internal function to reset direction. More... | |
Protected Attributes | |
Point_t | _start |
Start position of a line. More... | |
Point_t | _end |
End position of a line. More... | |
Vector_t | _dir |
Direction. More... | |
Representation of a simple 3D line segment Defines a finite 3D straight line by having the start and end position (Point_t).
.
Definition at line 25 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.
geoalgo::LineSegment::LineSegment | ( | ) |
Default constructor.
Definition at line 6 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
|
inlinevirtual |
Default destructor.
Definition at line 33 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.
geoalgo::LineSegment::LineSegment | ( | const double | start_x, |
const double | start_y, | ||
const double | start_z, | ||
const double | end_x, | ||
const double | end_y, | ||
const double | end_z | ||
) |
Alternative ctor (1)
Definition at line 12 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
Altenartive ctor (2)
Definition at line 19 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
|
inline |
Alternative ctor using template (3)
Definition at line 68 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.
geoalgo::LineSegment::LineSegment | ( | ) |
Default constructor.
|
inlinevirtual |
Default destructor.
Definition at line 33 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoLineSegment.h.
geoalgo::LineSegment::LineSegment | ( | const double | start_x, |
const double | start_y, | ||
const double | start_z, | ||
const double | end_x, | ||
const double | end_y, | ||
const double | end_z | ||
) |
Alternative ctor (1)
Altenartive ctor (2)
|
inline |
Alternative ctor using template (3)
Definition at line 68 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoLineSegment.h.
const Vector_t geoalgo::LineSegment::Dir | ( | ) | const |
Direction getter.
Definition at line 33 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
const Vector_t geoalgo::LineSegment::Dir | ( | ) | const |
Direction getter.
|
protected |
Internal function to reset direction.
Definition at line 45 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
|
protected |
Internal function to reset direction.
const Point_t & geoalgo::LineSegment::End | ( | ) | const |
End getter.
Definition at line 31 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
const Point_t& geoalgo::LineSegment::End | ( | ) | const |
End getter.
void geoalgo::LineSegment::End | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
End setter.
Definition at line 40 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
void geoalgo::LineSegment::End | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
End setter.
const Point_t& geoalgo::LineSegment::Start | ( | ) | const |
Start getter.
const Point_t & geoalgo::LineSegment::Start | ( | ) | const |
Start getter.
Definition at line 29 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
void geoalgo::LineSegment::Start | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Start setter.
Definition at line 35 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.cxx.
void geoalgo::LineSegment::Start | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Start setter.
|
protected |
Direction.
Definition at line 60 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.
|
protected |
End position of a line.
Definition at line 59 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.
|
protected |
Start position of a line.
Definition at line 58 of file larcorealg/larcorealg/GeoAlgo/GeoLineSegment.h.