public bool Equals(Ray other) { return(From.Equals(other.From) && Direction.HasSameDirectionAs(other.Direction)); }
public bool Equals(Rectangle other) { return BottomLeft.Equals(other.BottomLeft) && TopRight.Equals(other.TopRight); }
public bool Equals(Segment other) { return((A.Equals(other.A) && B.Equals(other.B)) || (A.Equals(other.B) && B.Equals(other.A))); }
private IEnumerable<Segment> MayBeSegment(Point a, Point b) { if (!a.Equals(b)) yield return new Segment(a, b); }