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)))); }
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); }
public Orthotope1Integer(OrderedRange <int> rangeX) { this.rangeX = rangeX; }
public Orthotope1Double(OrderedRange <double> rangeX) { this.rangeX = rangeX; }
public Orthotope1Double(Vector1Double start, Vector1Double end) { this.rangeX = new OrderedRange <double>(start.X, end.X); }
public static Orthotope1Double Intersect(IEnumerable <Orthotope1Double> orthotopes) { return(new Orthotope1Double(OrderedRange <double> .Intersect(orthotopes.Select(orthotope => orthotope.rangeX)))); }
public Orthotope1Integer(int startX, int endX) { this.rangeX = new OrderedRange <int>(startX, endX); }
public Orthotope1Integer(Vector1Integer start, Vector1Integer end) { this.rangeX = new OrderedRange <int>(start.X, end.X); }
public Orthotope2Double(Vector2Double start, Vector2Double end) { this.rangeX = new OrderedRange <double>(start.X, end.X); this.rangeY = new OrderedRange <double>(start.Y, end.Y); }
public bool Equals(OrderedRange <T> other) { return(this == other); }
public Orthotope2Double(double startX, double endX, double startY, double endY) { this.rangeX = new OrderedRange <double>(startX, endX); this.rangeY = new OrderedRange <double>(startY, endY); }
public static Orthotope1Integer Intersect(IEnumerable <Orthotope1Integer> orthotopes) { return(new Orthotope1Integer(OrderedRange <int> .Intersect(orthotopes.Select(orthotope => orthotope.rangeX)))); }