8#include <tracking/trackFindingCDC/geometry/Line2D.h>
10#include <tracking/trackFindingCDC/geometry/Vector2D.h>
13using namespace TrackFindingCDC;
18 double determinant =
n12().
cross(line.n12());
19 Vector2D result(-
n0() * line.n2() + line.n0() *
n2(),
n0() * line.n1() - line.n0() *
n1());
21 result /= determinant;
A two dimensional normal line.
double n1() const
Getter for the second line parameter.
const Vector2D & n12() const
Getter for the unit normal vector to the line.
Vector2D intersection(const Line2D &line) const
Calculates the intersection point of two line. Infinity for parallels.
double n2() const
Getter for the third line parameter.
double n0() const
Getter for the first line parameter.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
double cross(const Vector2D &rhs) const
Calculated the two dimensional cross product.
Abstract base class for different kinds of events.