예제 #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)));
        }