Function robot_calibration::distToLine

Function Documentation

double robot_calibration::distToLine(Eigen::Vector3d &a, Eigen::Vector3d &b, Eigen::Vector3d c)

Get the squared distance line segment A-B for point C.

Based on “Real Time Collision Detection”, pg 130

Parameters:
  • a – Point representing one end of the line segment

  • b – Point representing the other end of the line segment

  • c – Point to get distance to line segment