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