Esempio n. 1
0
 public static bool IsMember(this Polygon2d poly, Segment2d seg, out bool IsOutside)
 {
     IsOutside = true;
     if (poly.Vertices.Contains(seg.P0) && poly.Vertices.Contains(seg.P1))
     {
         if (poly.BiContains(seg))
         {
             IsOutside = false;
         }
         return(true);
     }
     return(false);
 }