#include <Kernel/Line.h>
Collaboration diagram for Gaudi::Math::Line< aPoint, aVector >:
Public Types | |
typedef aPoint | Point |
typedef aVector | Vector |
Public Member Functions | |
Line () | |
the default constructor | |
Line (const aPoint &p0, const aVector &v0) | |
the constructor from the point and direction vector | |
Line (const aPoint &p0, const aPoint &p1) | |
the constructor from two points: | |
const aPoint & | beginPoint () const |
Return the point of origin. | |
const aVector & | direction () const |
Return the direction vector of the line. | |
aPoint | position (const double mu) const |
Return a point on the line tick direction vectors away from point of origin: . | |
aPoint | operator() (const double mu) const |
Return a point on the line tick direction vectors away from point of origin: . | |
std::ostream & | fillStream (std::ostream &os) const |
Private Attributes | |
aPoint | m_p0 |
the start point on the line | |
aVector | m_v0 |
the direction vector of the line |
Based on line equation . where is a direction vector of the line, , and being two points on the line.
The class can be used as a very general abstraction for a 3D line. However, as there is only const access to the first point given in the constructor, this can take the meaning of the origin of a ray. The direction vector also only has const access. It can therefore be safely used to define the scale of steps along the line. Users requiring a normalised direction vector should construct the line using one.
Definition at line 38 of file Line.h.
typedef aPoint Gaudi::Math::Line< aPoint, aVector >::Point |
typedef aVector Gaudi::Math::Line< aPoint, aVector >::Vector |
Gaudi::Math::Line< aPoint, aVector >::Line | ( | ) | [inline] |
Gaudi::Math::Line< aPoint, aVector >::Line | ( | const aPoint & | p0, | |
const aVector & | v0 | |||
) | [inline] |
Gaudi::Math::Line< aPoint, aVector >::Line | ( | const aPoint & | p0, | |
const aPoint & | p1 | |||
) | [inline] |
const aPoint& Gaudi::Math::Line< aPoint, aVector >::beginPoint | ( | ) | const [inline] |
const aVector& Gaudi::Math::Line< aPoint, aVector >::direction | ( | ) | const [inline] |
aPoint Gaudi::Math::Line< aPoint, aVector >::position | ( | const double | mu | ) | const [inline] |
Return a point on the line tick direction vectors away from point of origin: .
Definition at line 59 of file Line.h.
00060 { return beginPoint() + direction() * mu ; }
aPoint Gaudi::Math::Line< aPoint, aVector >::operator() | ( | const double | mu | ) | const [inline] |
Return a point on the line tick direction vectors away from point of origin: .
Definition at line 66 of file Line.h.
00067 { return beginPoint() + direction() * mu ; }
std::ostream& Gaudi::Math::Line< aPoint, aVector >::fillStream | ( | std::ostream & | os | ) | const [inline] |
aPoint Gaudi::Math::Line< aPoint, aVector >::m_p0 [private] |
aVector Gaudi::Math::Line< aPoint, aVector >::m_v0 [private] |