예제 #1
0
 static bool AreEqual(EdgeTriplet <T> x, EdgeTriplet <T> y)
 {
     return(EqualityComparer <T> .Default.Equals(x.Value1, y.Value1) && EqualityComparer <T> .Default.Equals(x.Value2, y.Value2) && MathUtils.AreEqual(x.Weight, y.Weight));
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            EdgeTriplet <T> other = obj as EdgeTriplet <T>;

            return(other != null && AreEqual(this, other));
        }