Exemple #1
0
Fichier : Ray.cs Projet : Umqra/tdd
 public bool Equals(Ray other)
 {
     return(From.Equals(other.From) && Direction.HasSameDirectionAs(other.Direction));
 }
Exemple #2
0
 public bool Equals(Rectangle other)
 {
     return BottomLeft.Equals(other.BottomLeft) && TopRight.Equals(other.TopRight);
 }
Exemple #3
0
 public bool Equals(Segment other)
 {
     return((A.Equals(other.A) && B.Equals(other.B)) ||
            (A.Equals(other.B) && B.Equals(other.A)));
 }
Exemple #4
0
 private IEnumerable<Segment> MayBeSegment(Point a, Point b)
 {
     if (!a.Equals(b))
         yield return new Segment(a, b);
 }