Пример #1
0
 public override bool Equals(object obj)
 {
     if (obj != null && obj is IntersectionResult <T> )
     {
         IntersectionResult <T> other = (IntersectionResult <T>)obj;
         return(Equals(ref this, ref other));
     }
     return(base.Equals(obj));
 }
Пример #2
0
 private static bool Equals(ref IntersectionResult <T> v1, ref IntersectionResult <T> v2)
 {
     return(EqualityComparer <T> .Default.Equals(v1.location, v2.location) &&
            (v1.result == v2.result));
 }
Пример #3
0
 public bool Equals(IntersectionResult <T> other)
 {
     return(Equals(this, other));
 }