Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
}
GeoHalfLine.h
Class def header for a class HalfLine.
geoalgo::DirectedLine::DirectedLine
DirectedLine()
Default ctor.
Definition:
GeoDirectedLine.cxx:6
dir
string dir
Definition:
INukeNucleonCorr.cxx:61
l
static QStrList * l
Definition:
config.cpp:1044
geoalgo::Line::_pt1
Point_t _pt1
First point denoting infinite line.
Definition:
GeoLine.h:61
makePolycone.z
z
Definition:
makePolycone.py:153
geoalgo::DirectedLine::Dir
Vector_t Dir() const
Definition:
GeoDirectedLine.cxx:22
geoalgo::Line
Representation of a 3D infinite line. Defines an infinite 3D line by having 2 points which completely...
Definition:
GeoLine.h:27
wirecell.validate.cmaps.y
y
Definition:
cmaps.py:73
geoalgo::HalfLine
Representation of a 3D semi-infinite line. Defines a semi-infinite 3D line by having a start point (P...
Definition:
GeoHalfLine.h:30
geoalgo
Definition:
GeoAABox.cxx:4
geoalgo::Line::_pt2
Vector_t _pt2
Second point denoting infinite line.
Definition:
GeoLine.h:62
train.x
list x
Definition:
train.py:276
GeoDirectedLine.h
Class def header for a class DirectedLine.
geoalgo::Vector
Definition:
GeoVector.h:33
geoalgo::Line::check_and_raise
void check_and_raise(const Point_t &p1, const Point_t &p2) const
Compatibility check.
Definition:
GeoLine.cxx:41
Start
#define Start
Definition:
config.cpp:1229
Generated by
1.8.11