protected boolean optimize ( Point2D_F64 a , Point2D_F64 b , LineGeneral2D_F64 found ) { computeAdjustedEndPoints ( a , b ) ; return snapToEdge . refine ( adjA , adjB , found ) ; }
Fits a line defined by the two points . When fitting the line the weight of the edge is used to determine how influential the point is