Пример #1
0
 public List <Location> Intersects(Wire other) => _locations.Intersect(other._locations).ToList();
Пример #2
0
        public int GetMinimalStepsToIntersect(Wire other)
        {
            var intersections = Intersects(other);

            return(intersections.Min(i => GetStepsToPoint(i) + other.GetStepsToPoint(i)));
        }