![]() |
PandaRoot
|
#include <PndGeaneGeometryMethods.h>
Public Member Functions | |
PndGeaneGeometryMethods () | |
virtual | ~PndGeaneGeometryMethods () |
PndProp::PCAOutputStruct | Track2ToLine (TVector3 x1, TVector3 x2, TVector3 w1, TVector3 w2) |
Closest approach to a line from 2 GEANE points. METHOD: The nearest points on the two lines x1,x2 and w1,w2 is found. The method is described in: http://softsurfer.com/Archive/algorithm_0106/algorithm_0106.htm http://www.geometrictools.com/Documentation/DistanceLine3Line3.pdf. More... | |
PndProp::PCAOutputStruct | Track2ToPoint (TVector3 x1, TVector3 x2, TVector3 point) |
Closest approach to a point from 2 GEANE points. METHOD: The nearest point to w1 on the line x1, x2 is found. Elementary vector calculus is used. More... | |
PndProp::PCAOutputStruct | Track3ToLine (TVector3 x1, TVector3 x2, TVector3 x3, TVector3 w1, TVector3 w2) |
Find the closest approach points between a curve (helix) and a line (wire). METHOD: The classical Eberly method is used, see http://www.geometrictools.com/Documentation/DistanceLine3Circle.pdf. See also www.geometrictools.com for the other formulae used in this interface. The 4-degree polynomial resulting for the line parameter t is solved with the efficient SolveQuartic Root routine. The minimal distance solution is found by using our Track3ToPoint routine. More... | |
PndProp::PCAOutputStruct | Track3ToPoint (TVector3 x1, TVector3 x2, TVector3 x3, TVector3 w1) |
Closest approach to a point from 3 GEANE points. METHOD: First, the coordinate systems is transformed to the circle plane to have x1=(0,0), x2=(x2,0), x3=(x3,y3). Then, the point on the circle is found as the intersection between the circle and the line joining the circle center and the projection of the point on the circle plane. The 3D distance is found between w1 and this point on the circle. More... | |
ClassDef (PndGeaneGeometryMethods, 1) | |
Definition at line 8 of file PndGeaneGeometryMethods.h.
|
inline |
Definition at line 11 of file PndGeaneGeometryMethods.h.
|
inlinevirtual |
Definition at line 14 of file PndGeaneGeometryMethods.h.
References ClassDef(), Track2ToLine(), Track2ToPoint(), Track3ToLine(), and Track3ToPoint().
PndGeaneGeometryMethods::ClassDef | ( | PndGeaneGeometryMethods | , |
1 | |||
) |
Referenced by ~PndGeaneGeometryMethods().
PndProp::PCAOutputStruct PndGeaneGeometryMethods::Track2ToLine | ( | TVector3 | x1, |
TVector3 | x2, | ||
TVector3 | w1, | ||
TVector3 | w2 | ||
) |
Closest approach to a line from 2 GEANE points. METHOD: The nearest points on the two lines x1,x2 and w1,w2 is found. The method is described in: http://softsurfer.com/Archive/algorithm_0106/algorithm_0106.htm http://www.geometrictools.com/Documentation/DistanceLine3Line3.pdf.
x1 | first closest approach GEANE point |
x2 | second closest approach GEANE point |
w1 | first anchor point of the line (wire) to approach |
w2 | second anchor point of the line (wire) to approach |
Referenced by ~PndGeaneGeometryMethods().
PndProp::PCAOutputStruct PndGeaneGeometryMethods::Track2ToPoint | ( | TVector3 | x1, |
TVector3 | x2, | ||
TVector3 | point | ||
) |
Closest approach to a point from 2 GEANE points. METHOD: The nearest point to w1 on the line x1, x2 is found. Elementary vector calculus is used.
x1 | first closest approach GEANE point |
x2 | second closest approach GEANE point |
point | point to approach |
Referenced by ~PndGeaneGeometryMethods().
PndProp::PCAOutputStruct PndGeaneGeometryMethods::Track3ToLine | ( | TVector3 | x1, |
TVector3 | x2, | ||
TVector3 | x3, | ||
TVector3 | w1, | ||
TVector3 | w2 | ||
) |
Find the closest approach points between a curve (helix) and a line (wire). METHOD: The classical Eberly method is used, see http://www.geometrictools.com/Documentation/DistanceLine3Circle.pdf. See also www.geometrictools.com for the other formulae used in this interface. The 4-degree polynomial resulting for the line parameter t is solved with the efficient SolveQuartic Root routine. The minimal distance solution is found by using our Track3ToPoint routine.
x1 | first closest approach GEANE point |
x2 | second closest approach GEANE point |
x3 | third closest approach GEANE point |
w1 | first anchor point of the line (wire) to approach |
w2 | second anchor point of the line (wire) to approach |
Referenced by ~PndGeaneGeometryMethods().
PndProp::PCAOutputStruct PndGeaneGeometryMethods::Track3ToPoint | ( | TVector3 | x1, |
TVector3 | x2, | ||
TVector3 | x3, | ||
TVector3 | w1 | ||
) |
Closest approach to a point from 3 GEANE points. METHOD: First, the coordinate systems is transformed to the circle plane to have x1=(0,0), x2=(x2,0), x3=(x3,y3). Then, the point on the circle is found as the intersection between the circle and the line joining the circle center and the projection of the point on the circle plane. The 3D distance is found between w1 and this point on the circle.
x1 | first closest approach GEANE point |
x2 | second closest approach GEANE point |
x3 | third closest approach GEANE point |
Referenced by ~PndGeaneGeometryMethods().