示例#1
0
        public override bool Equals(object obj)
        {
            Pair item = obj as Pair;

            return(item != null &&
                   (PointA.Equals(item.PointA) && PointB.Equals(item.PointB) ||
                    PointB.Equals(item.PointA) && PointA.Equals(item.PointB)));
        }
示例#2
0
        //************************************* Overridden Methods *************************************
        public static bool operator ==(mPoint PointA, mPoint PointB)
        {
            if (object.ReferenceEquals(PointA, null))
            {
                return(object.ReferenceEquals(PointB, null));
            }

            return(PointA.Equals(PointB));
        }
示例#3
0
    public override bool Equals(object obj)
    {
        if (obj == null || GetType() != obj.GetType())
        {
            return(false);
        }

        return(PointA.Equals((obj as Edge).PointA) && PointB.Equals((obj as Edge).PointB));
    }
示例#4
0
 public bool Equals(LineSegment2D other)
 {
     return(PointA.Equals(other.PointA) && PointB.Equals(other.PointB));
 }
示例#5
0
 public bool HasOverlappingLocation(Hop hop)
 {
     return(PointA.Equals(hop.PointA) || PointB.Equals(hop.PointB) || PointA.Equals(hop.PointB) || PointB.Equals(hop.PointA));
 }