Template Function larflow::reco::pointLineDistance¶
- Defined in File geofuncs.cxx
Function Documentation¶
-
template<class
T>
Tlarflow::reco::pointLineDistance(const std::vector<T> &linept1, const std::vector<T> &linept2, const std::vector<T> &pt)¶ template function that gets distance of test point from line defined by two points.
calculation from: http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html
- Return
- distance from line
- Parameters
linept1: Point on linelinept2: Point on linept: Test point