예제 #1
0
        public static Point[] HosseinSorter(Point[] array)
        {
            Boundary boundary = GetBoundary(array, 5);

            var sfc = SpaceFillingCurves.Hossein(Moves.North, Moves.East);

            return(SortAlgorithm.MergeSort <Point>(array, (p1, p2) => sfc.ComparePoints(p1, p2, boundary)));
        }
예제 #2
0
 public static int HosseinComparer(Point first, Point second, Boundary mbb)
 {
     return(SpaceFillingCurves.Hossein(Moves.North, Moves.East).ComparePoints(first, second, mbb));
 }