Exemplo n.º 1
0
 public EnumerableSolids Intersect(KtRegion region)
 {
     if (region is KtHollowRegion hollow)
     {
         return(Intersect(hollow));
     }
     if (region is KtSolidRegion solid)
     {
         return(Intersect(solid));
     }
     return(null);
 }
Exemplo n.º 2
0
 public override bool Inscribes(KtRegion region) => region?.All(Inscribes) == true && holes.All(reg => !reg.Inscribes(region));