public void DisplayAllConstruct(P2D p, D2 l2, ITreatConstruct tc) { _dPoints.Clear(); _dDistances2.Clear(); Console.WriteLine("=== Point ==="); DisplayConstruct(p, tc); Console.WriteLine("=== Distance ==="); DisplayConstruct(l2, tc); }
public void DisplayConstruct(D2 d, ITreatConstruct tc) { if (!_dDistances2.Contains(d)) { _dDistances2.Add(d); tc.Display(d); DisplayConstruct(d.A, tc); DisplayConstruct(d.B, tc); } }
public void CheckPointMatch(ITreatConstruct tc) { foreach (var p in _points) { var r2 = new D2(p.Norm2(), null, null); if (_distances2.Contains(r2)) { Console.WriteLine("Match: {0} {1}", p, r2); var dc = new D2Comparer(); DisplayAllConstruct(p, _distances2.First(x => dc.Compare(x, r2) == 0), tc); return; } } }
public void DisplayConstruct(P2D p, ITreatConstruct tc) { if (!_dPoints.Contains(p)) { _dPoints.Add(p); tc.Display(p); if (p.g != null) { DisplayConstruct(p.g.A, tc); DisplayConstruct(p.g.B, tc); DisplayConstruct(p.g.l2, tc); DisplayConstruct(p.g.h2, tc); } } }