Ejemplo n.º 1
0
 public List <Location> Intersects(Wire other) => _locations.Intersect(other._locations).ToList();
Ejemplo n.º 2
0
        public int GetMinimalStepsToIntersect(Wire other)
        {
            var intersections = Intersects(other);

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