![]() |
Belle II Software release-09-00-03
|
2D line. More...
#include <Line2D.h>


Public Member Functions | |
| Line2D (double x, double y, double vecx, double vecy) | |
| Constructor. | |
| ~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. | |
| int | findIntersection (const Circle2D &circle, HepGeom::Point3D< double > intersections[2]) const |
| Find intersections with a circle. | |
| int | findIntersection (const Arc2D &arc, HepGeom::Point3D< double > intersections[2]) const |
| Find intersections with an arc. | |
| int | findIntersection (const Line2D &line, HepGeom::Point3D< double > *intersection, double t[2]) const |
| Find intersection with a line. | |
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. | |
| int | selectIntersections (HepGeom::Point3D< double > *intersections, bool *condition, int n) const |
| Select intersections. | |
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 |
Find intersections with an arc.
| [in] | arc | Arc. |
| [out] | intersections | Intersections. |
Definition at line 43 of file Line2D.cc.
| int findIntersection | ( | const Circle2D & | circle, |
| HepGeom::Point3D< double > | intersections[2] | ||
| ) | const |
Find intersections with a circle.
| [in] | circle | Circle. |
| [out] | intersections | Intersections. |
|
protected |
Find intersections with a circle.
| [in] | circle | Circle. |
| [out] | intersections | Intersections. |
| [out] | t | Values of t for intersection points. |
| [out] | angles | Values of angles for intersection points. |
Definition at line 95 of file Line2D.cc.
| 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.
Definition at line 65 of file Line2D.cc.
|
inline |
|
inline |
|
protected |
Select intersections.
| [in,out] | intersections | Intersections. |
| [in] | condition | Selection condition. |
| [in] | n | Number of intersections. |
Definition at line 132 of file Line2D.cc.
|
protected |