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 Contains(Vector2Double vector) { return(rangeX.Contains(vector.X) && rangeY.Contains(vector.Y)); }
public static Orthotope2Double CreateFromCenter(Vector2Double center, Vector2Double size) { return(new Orthotope2Double(center - 0.5 * size, center + 0.5 * size)); }