Пример #1
0
        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));
        }
Пример #2
0
        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));
        }