fitLine2f function
        
Mat
fitLine2f(
    
- VecPoint2f points,
 - int distType,
 - double param,
 - double reps,
 - double aeps, {
 - OutputArray? line,
 
FitLine fits a line to a 2D or 3D point set. distType: DistanceTypes For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#gaf849da1fdafa67ee84b1e9a23b93f91f
Implementation
Mat fitLine2f(VecPoint2f points, int distType, double param, double reps, double aeps, {OutputArray? line}) {
  line ??= Mat.empty();
  cvRun(() => cimgproc.cv_fitLine2f(points.ref, line!.ref, distType, param, reps, aeps, ffi.nullptr));
  return line;
}