8#include <tracking/trackingUtilities/geometry/Line2D.h>
11using namespace TrackingUtilities;
16 double determinant = VectorUtil::Cross(
n12(), line.n12());
17 ROOT::Math::XYVector result(-
n0() * line.n2() + line.n0() *
n2(),
n0() * line.n1() - line.n0() *
n1());
19 result /= determinant;
Line2D()
Default constructor for ROOT compatibility.
double n1() const
Getter for the second line parameter.
ROOT::Math::XYVector intersection(const Line2D &line) const
Calculates the intersection point of two line. Infinity for parallels.
const ROOT::Math::XYVector & n12() const
Getter for the unit normal vector to the line.
double n2() const
Getter for the third line parameter.
double n0() const
Getter for the first line parameter.
Abstract base class for different kinds of events.