Esempio n. 1
0
 public static Orthotope2Double Union(IEnumerable <Orthotope2Double> orthotopes)
 {
     return(new Orthotope2Double(OrderedRange <double> .Union(orthotopes.Select(orthotope => orthotope.rangeX)), OrderedRange <double> .Union(orthotopes.Select(orthotope => orthotope.rangeY))));
 }
Esempio n. 2
0
 public static Orthotope2Integer Union(IEnumerable <Orthotope2Integer> orthotopes)
 {
     return(new Orthotope2Integer(OrderedRange <int> .Union(orthotopes.Select(orthotope => orthotope.rangeX)), OrderedRange <int> .Union(orthotopes.Select(orthotope => orthotope.rangeY))));
 }