public override bool Equals(object o) { if ((o == null) || !(o is Rect)) { return false; } Rect rect = (Rect)o; return Equals(this, rect); }
protected virtual bool DoesntContain(Rect rect, double otherStart, double otherEnd) { if (rect.Equals(Rect.Empty)) return true; double center = (otherStart + otherEnd)/2; if (center.IsInvalid()) return true; return center < start || center > end; }