예제 #1
0
        internal int FindNearestManhattanDistanceIntersection()
        {
            var intersections = GetWireIntersections();

            intersections.Remove(Origin);

            return(intersections.Select(coordinate => Origin.CalculateManhattanDistanceTo(coordinate)).Min());
        }