public override bool Equals(object obj) { Rectangle other = obj as Rectangle; if (other == null) return false; return (Math.Abs(Width - other.Width) < 0.000001) && (Math.Abs(Height - other.Height) < 0.000001); }