Template Function larflow::reco::pointLineDistance

Function Documentation

template<class T>
T larflow::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 line
  • linept2: Point on line
  • pt: Test point