Exemplo n.º 1
0
        private static IEnumerable <Vector2> SortSpecialBuildingsByDistance(Vector2 house,
                                                                            IEnumerable <Vector2> specialBuildings)
        {
            Assignment1 MergeSortAlgorithm = new Assignment1(house, specialBuildings.ToArray());

            return(MergeSortAlgorithm.GlobalSpecialBuildings);
        }
Exemplo n.º 2
0
        private static IEnumerable <Vector2> SortSpecialBuildingsByDistance(Vector2 house, IEnumerable <Vector2> specialBuildings)
        {
            List <Vector2> buildings = specialBuildings.ToList <Vector2>();

            Assignment1.mergeSort(house, buildings, 0, buildings.Count - 1);
            return(buildings);
        }