public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null || !GetType().IsEquivalentTo(obj.GetType())) { return(false); } LineSegment other = (LineSegment)obj; return(BeginPoint.Equals(other.BeginPoint) && EndPoint.Equals(other.EndPoint)); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null || !GetType().IsEquivalentTo(obj.GetType())) { return(false); } ArcSegment other = (ArcSegment)obj; return(BeginPoint.Equals(other.BeginPoint) && EndPoint.Equals(other.EndPoint) && Center.Equals(other.Center) && ArcDirection.Equals(other.ArcDirection)); }