10#include <klm/eklm/geometry/LineSegment2D.h>
16 Line2D(point1.x(), point1.y(),
17 point2.x() - point1.x(), point2.y() - point1.y())
59 double t[2], angles[2];
62 for (i = 0; i < n; i++)
72 double t[2], angles[2];
75 for (i = 0; i < n; i++)
82 return (t >= 0 && t <= 1);
bool angleWithinRange(double angle) const
Check if angle is within the arc.
int findIntersection(const Line2D &line, HepGeom::Point3D< double > *intersection) const
Find intersection with a line.
int selectIntersections(HepGeom::Point3D< double > *intersections, bool *condition, int n) const
Select intersections.
Line2D(double x, double y, double vecx, double vecy)
Constructor.
~LineSegment2D()
Destructor.
int findIntersection(const Line2D &line, HepGeom::Point3D< double > *intersection) const
Find intersection with a line.
bool tWithinRange(double t) const
Check if t is within the line segment (0 <= t <= 1).
LineSegment2D(const HepGeom::Point3D< double > &point1, const HepGeom::Point3D< double > &point2)
Constructor.
Abstract base class for different kinds of events.