![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Representation of a 3D semi-infinite line. Defines a 3D cone with the following properties:
Start point (or vertex), Direction, Length (or Length), Radius, opening angle
When 2 of Length, Radius, opening angle are defined the third is automatically set.
More...
#include "GeoCone.h"
Public Member Functions | |
| Cone () | |
| Default constructor. More... | |
| virtual | ~Cone () |
| Default destructor. More... | |
| Cone (double const x, double const y, double const z, double const dirx, double const diry, double const dirz, double const length, double const radius) | |
| Alternative ctor (1) More... | |
| Cone (Point_t const &start, Vector_t const &dir, double const length, double const radius) | |
| Alternative ctor (2) More... | |
| double | Length () const |
| Length getter. More... | |
| double | Radius () const |
| Length getter. More... | |
| double | Angle () const |
| Angle getter. More... | |
| void | Length (double const l) |
| Length setter. More... | |
| void | Radius (double const r) |
| Radius setter. More... | |
| template<class T , class U > | |
| Cone (T const &start, U const &dir) | |
| Alternative ctor using template (3) More... | |
| Point_t const & | Start () const |
| Start getter. More... | |
| void | Start (double const x, double const y, double const z) |
| Start setter. More... | |
| void | Start (TVector3 const &pt) |
| Start setter. More... | |
| template<class T > | |
| void | Start (T const &pos) |
| Start setter template. More... | |
| Vector_t const & | Dir () const |
| Direction getter. More... | |
| void | Dir (double const x, double const y, double const z) |
| Dir setter. More... | |
| void | Dir (TVector3 const &dir) |
| Dir setter. More... | |
| template<class T > | |
| void | Dir (T const &dir) |
| Dir setter template. More... | |
Protected Member Functions | |
| void | Normalize () |
| Normalize direction. More... | |
Protected Attributes | |
| double | _length |
| Helight (length) of the cone. More... | |
| double | _radius |
| Radius of the cone at the base. More... | |
| double | _angle |
| Opening Angle. More... | |
| Point_t | _start |
| Beginning of the half line. More... | |
| Vector_t | _dir |
| Direction of the half line from _start. More... | |
Representation of a 3D semi-infinite line. Defines a 3D cone with the following properties:
Start point (or vertex), Direction, Length (or Length), Radius, opening angle
When 2 of Length, Radius, opening angle are defined the third is automatically set.
| geoalgo::Cone::Cone | ( | ) |
|
inlinevirtual |
| geoalgo::Cone::Cone | ( | double const | x, |
| double const | y, | ||
| double const | z, | ||
| double const | dirx, | ||
| double const | diry, | ||
| double const | dirz, | ||
| double const | length, | ||
| double const | radius | ||
| ) |
| geoalgo::Cone::Cone | ( | Point_t const & | start, |
| Vector_t const & | dir, | ||
| double const | length, | ||
| double const | radius | ||
| ) |
|
inline |
| double geoalgo::Cone::Angle | ( | ) | const |
|
inherited |
Direction getter.
Definition at line 33 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_dir.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), geoalgo::GeoObjCollection::Add(), geoalgo::GeoAlgo::Intersection(), and geoalgo::HalfLine::~HalfLine().
|
inherited |
Dir setter.
Definition at line 45 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_dir, geoalgo::HalfLine::Normalize(), x, y, and z.
|
inherited |
Dir setter.
Definition at line 60 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_dir, and geoalgo::HalfLine::Normalize().
|
inlineinherited |
Dir setter template.
Definition at line 85 of file GeoHalfLine.h.
References geoalgo::HalfLine::Normalize().
| double geoalgo::Cone::Length | ( | ) | const |
Length getter.
Definition at line 51 of file GeoCone.cxx.
References _length.
Referenced by geoalgo::GeoObjCollection::Add(), and ~Cone().
| void geoalgo::Cone::Length | ( | double const | l | ) |
|
protectedinherited |
Normalize direction.
Definition at line 68 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_dir, and geoalgo::Vector::Length().
Referenced by geoalgo::HalfLine::Dir(), geoalgo::HalfLine::HalfLine(), and geoalgo::HalfLine::~HalfLine().
| double geoalgo::Cone::Radius | ( | ) | const |
Length getter.
Definition at line 56 of file GeoCone.cxx.
References _radius.
Referenced by ~Cone().
| void geoalgo::Cone::Radius | ( | double const | r | ) |
|
inherited |
Start getter.
Definition at line 28 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_start.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), geoalgo::GeoObjCollection::Add(), geoalgo::GeoAlgo::BoxOverlap(), geoalgo::GeoAlgo::ClosestPt(), geoalgo::GeoAlgo::commonOrigin(), geoalgo::GeoAlgo::Intersection(), geoalgo::GeoAlgo::SqDist(), and geoalgo::HalfLine::~HalfLine().
|
inherited |
Start setter.
Definition at line 38 of file GeoHalfLine.cxx.
References geoalgo::HalfLine::_start, x, y, and z.
|
inherited |
|
inlineinherited |
|
protected |
|
protectedinherited |
Direction of the half line from _start.
Definition at line 62 of file GeoHalfLine.h.
Referenced by geoalgo::HalfLine::Dir(), and geoalgo::HalfLine::Normalize().
|
protected |
|
protected |
|
protectedinherited |
Beginning of the half line.
Definition at line 61 of file GeoHalfLine.h.
Referenced by geoalgo::HalfLine::Start().