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))); }
//************************************* Overridden Methods ************************************* public static bool operator ==(mPoint PointA, mPoint PointB) { if (object.ReferenceEquals(PointA, null)) { return(object.ReferenceEquals(PointB, null)); } return(PointA.Equals(PointB)); }
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)); }
public bool Equals(LineSegment2D other) { return(PointA.Equals(other.PointA) && PointB.Equals(other.PointB)); }
public bool HasOverlappingLocation(Hop hop) { return(PointA.Equals(hop.PointA) || PointB.Equals(hop.PointB) || PointA.Equals(hop.PointB) || PointB.Equals(hop.PointA)); }