| | |
| | | |
| | | public static bool operator ==(ZTRectangle a, ZTRectangle b) |
| | | { |
| | | if (a.Start == b.Start && a.End == b.End) |
| | | if (a.Start .Equals( b.Start) && a.End.Equals( b.End)) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | |
| | | public static bool operator !=(ZTRectangle a, ZTRectangle b) |
| | | { |
| | | if (a.Start != b.Start || a.End != b.End) |
| | | if (!a.Start.Equals( b.Start) || !a.End.Equals(b.End)) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | #region IEquatable |
| | | public bool Equals(ZTRectangle other) |
| | | { |
| | | if (this.Start == other.Start && this.End == other.End) |
| | | if (this.Start.Equals(other.Start) && this.End.Equals(other.End)) |
| | | { |
| | | return true; |
| | | } |