A segment joins two points. More...
#include <Segment.h>
Public Member Functions | |
const Point & | GetBegin () const |
Return the initial point. More... | |
const Vector & | GetDirection () const |
Return the (normalized) direction vector. More... | |
const Point & | GetEnd () const |
Return the final point. More... | |
double | GetLength () const |
Return the length of the segment (ie the distance between begin and end). More... | |
Segment (const Point &b, const Point &e) | |
Construct the segment between the given two points. More... | |
Private Attributes | |
Point | fBegin |
Vector | fDirection |
Compute the vector once. More... | |
Point | fEnd |
double | fLength |
and so the length. More... | |
Construct the segment between the given two points.
b | Initial point. |
e | Final point. |
Definition at line 25 of file Segment.h.
References fDirection, fLength, and utl::Vector::GetMag().
|
inline |
Return the initial point.
Definition at line 36 of file Segment.h.
References fBegin.
Referenced by mdet::Scintillator::ComputeUndergroundIntersectionOf(), and MdCounterSimulatorAG::MdCounterSimulator::SimulatePulses().
|
inline |
Return the (normalized) direction vector.
Definition at line 42 of file Segment.h.
References fDirection.
Referenced by MdCounterSimulatorAG::MdCounterSimulator::SimulatePulses().
|
inline |
Return the final point.
Definition at line 39 of file Segment.h.
References fEnd.
Referenced by MdCounterSimulatorAG::MdCounterSimulator::SimulatePulses().
|
inline |
Return the length of the segment (ie the distance between begin and end).
Definition at line 45 of file Segment.h.
References fLength.
Referenced by mdet::Scintillator::ComputeUndergroundGrammageFor(), and MdCounterSimulatorAG::MdCounterSimulator::SimulatePulses().
|
private |
Definition at line 48 of file Segment.h.
Referenced by GetBegin().
|
private |
Compute the vector once.
Definition at line 51 of file Segment.h.
Referenced by GetDirection(), and Segment().
|
private |
and so the length.
Definition at line 53 of file Segment.h.
Referenced by GetLength(), and Segment().