Exemple #1
0
 public static bool JudgePointEqualLine(GeoXYLine geoXYLine, GeoXYPoint geoXYPoint, double instance)
 {
     bool flag = false;
     if (!Is2EndPoints(geoXYLine))
     {
         throw new GeoParamIllegalException();
     }
     if (geoXYLine.DistanceToPoint(geoXYPoint) <= instance)
     {
         flag = IsOnLineWhenOnBeeline(geoXYLine.Points[0], geoXYLine.Points[1], geoXYPoint);
     }
     return flag;
 }