Beispiel #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))));
 }
Beispiel #2
0
 public Orthotope2Double(OrderedRange <double> rangeX, OrderedRange <double> rangeY)
 {
     this.rangeX = rangeX;
     this.rangeY = rangeY;
 }
 public Orthotope2Integer(Vector2Integer start, Vector2Integer end)
 {
     this.rangeX = new OrderedRange <int>(start.X, end.X);
     this.rangeY = new OrderedRange <int>(start.Y, end.Y);
 }
 public Orthotope2Integer(int startX, int endX, int startY, int endY)
 {
     this.rangeX = new OrderedRange <int>(startX, endX);
     this.rangeY = new OrderedRange <int>(startY, endY);
 }
 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))));
 }
 public Orthotope2Integer(OrderedRange <int> rangeX, OrderedRange <int> rangeY)
 {
     this.rangeX = rangeX;
     this.rangeY = rangeY;
 }
 public Orthotope1Double(double startX, double endX)
 {
     this.rangeX = new OrderedRange <double>(startX, endX);
 }
Beispiel #8
0
 public Orthotope1Integer(OrderedRange <int> rangeX)
 {
     this.rangeX = rangeX;
 }
 public Orthotope1Double(OrderedRange <double> rangeX)
 {
     this.rangeX = rangeX;
 }
Beispiel #10
0
 public Orthotope1Double(Vector1Double start, Vector1Double end)
 {
     this.rangeX = new OrderedRange <double>(start.X, end.X);
 }
Beispiel #11
0
 public static Orthotope1Double Intersect(IEnumerable <Orthotope1Double> orthotopes)
 {
     return(new Orthotope1Double(OrderedRange <double> .Intersect(orthotopes.Select(orthotope => orthotope.rangeX))));
 }
Beispiel #12
0
 public Orthotope1Integer(int startX, int endX)
 {
     this.rangeX = new OrderedRange <int>(startX, endX);
 }
Beispiel #13
0
 public Orthotope1Integer(Vector1Integer start, Vector1Integer end)
 {
     this.rangeX = new OrderedRange <int>(start.X, end.X);
 }
Beispiel #14
0
 public Orthotope2Double(Vector2Double start, Vector2Double end)
 {
     this.rangeX = new OrderedRange <double>(start.X, end.X);
     this.rangeY = new OrderedRange <double>(start.Y, end.Y);
 }
Beispiel #15
0
 public bool Equals(OrderedRange <T> other)
 {
     return(this == other);
 }
Beispiel #16
0
 public Orthotope2Double(double startX, double endX, double startY, double endY)
 {
     this.rangeX = new OrderedRange <double>(startX, endX);
     this.rangeY = new OrderedRange <double>(startY, endY);
 }
Beispiel #17
0
 public static Orthotope1Integer Intersect(IEnumerable <Orthotope1Integer> orthotopes)
 {
     return(new Orthotope1Integer(OrderedRange <int> .Intersect(orthotopes.Select(orthotope => orthotope.rangeX))));
 }