![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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"
Public Member Functions | |
| DirectedLine () | |
| Default ctor. More... | |
| DirectedLine (double const x, double const y, double const z, double const dirx, double const diry, double const dirz) | |
| Alternative ctor (1) More... | |
| DirectedLine (Point_t const &pt, Vector_t const &dir) | |
| Altenartive ctor (2) More... | |
| DirectedLine (HalfLine const &l) | |
| Alternative ctor (3) More... | |
| template<class T , class U > | |
| DirectedLine (T const &pt, U const &dir) | |
| Alternative ctor using template (3) More... | |
| Vector_t | Dir () const |
| Point_t const & | Pt1 () const |
| Start getter. More... | |
| void | Pt1 (double const x, double const y, double const z) |
| Pt1 setter. More... | |
| template<class T > | |
| void | Pt1 (T const &pt1) |
| Pt1 setter template. More... | |
| Point_t const & | Pt2 () const |
| Direction getter. More... | |
| void | Pt2 (double const x, double const y, double const z) |
| Pt2 setter. More... | |
| template<class T > | |
| void | Pt2 (T const &pt2) |
| Pt2 setter template. More... | |
Protected Member Functions | |
| void | check_and_raise (Point_t const &p1, Point_t const &p2) const |
| Compatibility check. More... | |
Protected Attributes | |
| Point_t | _pt1 |
| First point denoting infinite line. More... | |
| Vector_t | _pt2 |
| Second point denoting infinite line. More... | |
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 GeoDirectedLine.h.
| geoalgo::DirectedLine::DirectedLine | ( | ) |
| geoalgo::DirectedLine::DirectedLine | ( | double const | x, |
| double const | y, | ||
| double const | z, | ||
| double const | dirx, | ||
| double const | diry, | ||
| double const | dirz | ||
| ) |
Alternative ctor (1)
Definition at line 8 of file GeoDirectedLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, and geoalgo::Line::check_and_raise().
Altenartive ctor (2)
Definition at line 19 of file GeoDirectedLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, and geoalgo::Line::check_and_raise().
| geoalgo::DirectedLine::DirectedLine | ( | HalfLine const & | l | ) |
Alternative ctor (3)
Definition at line 24 of file GeoDirectedLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, and geoalgo::Line::check_and_raise().
|
inline |
Alternative ctor using template (3)
Definition at line 54 of file GeoDirectedLine.h.
References Dir().
|
protectedinherited |
Compatibility check.
Definition at line 49 of file GeoLine.cxx.
Referenced by DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), and geoalgo::Line::~Line().
| Vector_t geoalgo::DirectedLine::Dir | ( | ) | const |
Definition at line 29 of file GeoDirectedLine.cxx.
References geoalgo::Line::_pt1, and geoalgo::Line::_pt2.
Referenced by DirectedLine().
|
inherited |
Start getter.
Definition at line 24 of file GeoLine.cxx.
References geoalgo::Line::_pt1.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), geoalgo::GeoAlgo::ClosestPt(), geoalgo::GeoAlgo::commonOrigin(), geoalgo::GeoAlgo::SqDist(), and geoalgo::Line::~Line().
|
inherited |
Pt1 setter.
Definition at line 33 of file GeoLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, geoalgo::Line::check_and_raise(), x, y, and z.
|
inlineinherited |
Pt1 setter template.
Definition at line 77 of file GeoLine.h.
References geoalgo::Line::check_and_raise().
|
inherited |
Direction getter.
Definition at line 28 of file GeoLine.cxx.
References geoalgo::Line::_pt2.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), and geoalgo::Line::~Line().
|
inherited |
Pt2 setter.
Definition at line 41 of file GeoLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, geoalgo::Line::check_and_raise(), x, y, and z.
|
inlineinherited |
Pt2 setter template.
Definition at line 85 of file GeoLine.h.
References geoalgo::Line::check_and_raise().
|
protectedinherited |
First point denoting infinite line.
Definition at line 63 of file GeoLine.h.
Referenced by geoalgo::Cylinder::Contain(), Dir(), DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), and geoalgo::Line::Pt2().
|
protectedinherited |
Second point denoting infinite line.
Definition at line 64 of file GeoLine.h.
Referenced by geoalgo::Cylinder::Contain(), Dir(), DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), and geoalgo::Line::Pt2().