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