 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/geometry/Line2D.h>
12 #include <tracking/trackFindingCDC/geometry/Vector2D.h>
15 using namespace TrackFindingCDC;
20 double determinant =
n12().
cross(line.n12());
21 Vector2D result(-
n0() * line.n2() + line.n0() *
n2(),
n0() * line.n1() - line.n0() *
n1());
23 result /= determinant;
double n0() const
Getter for the first line parameter.
A two dimensional vector which is equipped with functions for correct handeling of orientation relat...
double n2() const
Getter for the third line parameter.
Vector2D intersection(const Line2D &line) const
Calculates the intersection point of two line. Infinity for parallels.
double cross(const Vector2D &rhs) const
Calculated the two dimensional cross product.
Abstract base class for different kinds of events.
double n1() const
Getter for the second line parameter.
A two dimensional normal line.
const Vector2D & n12() const
Getter for the unit normal vector to the line.