Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larcorealg
larcorealg
GeoAlgo
larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx
Go to the documentation of this file.
1
#include "
larcorealg/GeoAlgo/GeoDirectedLine.h
"
2
#include "
larcorealg/GeoAlgo/GeoHalfLine.h
"
3
4
namespace
geoalgo {
5
6
DirectedLine::DirectedLine
() :
Line
()
7
{}
8
9
DirectedLine::DirectedLine
(
const
double
x
,
const
double
y
,
const
double
z
,
10
const
double
dirx,
const
double
diry,
const
double
dirz)
11
:
Line
( x, y, z, x+dirx, y+diry, z+dirz)
12
{
check_and_raise
(
_pt1
,
_pt2
); }
13
14
DirectedLine::DirectedLine
(
const
Point_t
& pt,
const
Vector_t
&
dir
)
15
:
Line
( pt, pt+dir)
16
{
check_and_raise
(
_pt1
,
_pt2
); }
17
18
DirectedLine::DirectedLine
(
const
HalfLine
& l)
19
:
Line
( l.Start(), l.Start()+l.Dir() )
20
{
check_and_raise
(
_pt1
,
_pt2
); }
21
22
Vector_t
DirectedLine::Dir
()
const
23
{
return
_pt2
-
_pt1
; }
24
25
}
z
process_name opflash particleana ie ie ie z
Definition:
run_opflash_electron.fcl:92
x
process_name opflash particleana ie x
Definition:
run_opflash_electron.fcl:90
geoalgo::DirectedLine::DirectedLine
DirectedLine()
Default ctor.
Definition:
larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx:6
GeoHalfLine.h
geoalgo::Line::_pt1
Point_t _pt1
First point denoting infinite line.
Definition:
larcorealg/larcorealg/GeoAlgo/GeoLine.h:61
y
process_name opflash particleana ie ie y
Definition:
run_opflash_electron.fcl:91
geoalgo::DirectedLine::Dir
Vector_t Dir() const
Definition:
larcorealg/larcorealg/GeoAlgo/GeoDirectedLine.cxx:22
geoalgo::Line
Representation of a 3D infinite line. Defines an infinite 3D line by having 2 points which completely...
Definition:
larcorealg/larcorealg/GeoAlgo/GeoLine.h:27
dropbox.dir
tuple dir
Definition:
dropbox.py:28
GeoDirectedLine.h
geoalgo::HalfLine
Representation of a 3D semi-infinite line. Defines a semi-infinite 3D line by having a start point (P...
Definition:
larcorealg/larcorealg/GeoAlgo/GeoHalfLine.h:30
geoalgo::Line::_pt2
Vector_t _pt2
Second point denoting infinite line.
Definition:
larcorealg/larcorealg/GeoAlgo/GeoLine.h:62
geoalgo::Vector
Definition:
larcorealg/larcorealg/GeoAlgo/GeoVector.h:33
geoalgo::Line::check_and_raise
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
Definition:
larcorealg/larcorealg/GeoAlgo/GeoLine.cxx:41
Generated by
1.8.5