コード例 #1
0
 public static Point[] Intercepts(this Wire wire1, Wire wire2)
 {
     return(Intercepts(wire1.Vectors, wire2.Vectors).Select(x => x.Item1).ToArray());
 }
コード例 #2
0
        public static int StepsToClosestIntersection(this Wire wire1, Wire wire2)
        {
            var points = Intercepts(wire1.Vectors, wire2.Vectors);

            return(points.Select(p => p.Item2).Min());
        }