8 #include "../../include/ecl/geometry/linear_segment.hpp" 31 A = -1*(y_2-
y_1)/(x_2-x_1);
45 if ( squared_length_p2p1 != 0 ) {
46 t = dot / squared_length_p2p1;
57 return (x - xx)*(x - xx) + (y - yy)*(y - yy);
ecl::Parameter< double > A
ecl::Parameter< double > C
Embedded control libraries.
double squaredDistanceFromPoint(const double &x, const double &y) const
Distance of a point from the segment.
LinearSegment(const double &x_1, const double &y_1, const double &x_2, const double &y_2)
ecl::Parameter< double > B