![]() |
Belle II Software
release-08-02-06
|
2D line. More...
#include <Line2D.h>
Public Member Functions | |
Line2D (double x, double y, double vecx, double vecy) | |
Constructor. More... | |
~Line2D () | |
Destructor. | |
const HepGeom::Point3D< double > & | getInitialPoint () const |
Get initial point. | |
const HepGeom::Vector3D< double > & | getVector () const |
Get vector. | |
int | findIntersection (const Line2D &line, HepGeom::Point3D< double > *intersection) const |
Find intersection with a line. More... | |
int | findIntersection (const Circle2D &circle, HepGeom::Point3D< double > intersections[2]) const |
Find intersections with a circle. More... | |
int | findIntersection (const Arc2D &arc, HepGeom::Point3D< double > intersections[2]) const |
Find intersections with an arc. More... | |
int | findIntersection (const Line2D &line, HepGeom::Point3D< double > *intersection, double t[2]) const |
Find intersection with a line. More... | |
Protected Member Functions | |
int | findIntersection (const Circle2D &circle, HepGeom::Point3D< double > intersections[2], double t[2], double angles[2]) const |
Find intersections with a circle. More... | |
int | selectIntersections (HepGeom::Point3D< double > *intersections, bool *condition, int n) const |
Select intersections. More... | |
Protected Attributes | |
HepGeom::Point3D< double > | m_Point |
Initial point. | |
HepGeom::Vector3D< double > | m_Vector |
Vector. | |
Line2D | ( | double | x, |
double | y, | ||
double | vecx, | ||
double | vecy | ||
) |
Constructor.
[in] | x | Initial point X coordinate. |
[in] | y | Initial point y coordinate. |
[in] | vecx | Vector X component. |
[in] | vecy | Vector Y component. |
Definition at line 17 of file Line2D.cc.
int findIntersection | ( | const Arc2D & | arc, |
HepGeom::Point3D< double > | intersections[2] | ||
) | const |
int findIntersection | ( | const Circle2D & | circle, |
HepGeom::Point3D< double > | intersections[2] | ||
) | const |
|
protected |
int findIntersection | ( | const Line2D & | line, |
HepGeom::Point3D< double > * | intersection | ||
) | const |
Find intersection with a line.
[in] | line | Line. |
[out] | intersection | Intersection. |
int findIntersection | ( | const Line2D & | line, |
HepGeom::Point3D< double > * | intersection, | ||
double | t[2] | ||
) | const |
Find intersection with a line.
[in] | line | Line. |
[out] | intersection | Intersection. |
[out] | t | Values of t for intersection point (t[0] - this line, t[1] - line from argument). |
If (*this) and line are the same line then 0 is returned.
|
protected |