[main_ai] Change distPt2Line and  adds function in math_ops : 
convPts2Line , interLine2Line, interCircle2Line, testPtOnSeg, testPtOnArc, symPtprLine, sign