Пример #1
0
        private static int Partition(List <PlaneVertexArray> list, int start, int end)
        {
            PlaneVertexArray temp;
            PlaneVertexArray p = list[end];
            int i = start - 1;

            for (int j = start; j <= end - 1; j++)
            {
                if (list[j].GetDepth() < p.GetDepth())
                {
                    i++;
                    temp    = list[i];
                    list[i] = list[j];
                    list[j] = temp;
                }
            }

            temp        = list[i + 1];
            list[i + 1] = list[end];
            list[end]   = temp;
            return(i + 1);
        }
Пример #2
0
 public static void Remove(PlaneVertexArray plane)
 {
     PlaneList.Remove(plane);
 }
Пример #3
0
 public static void Add(PlaneVertexArray plane)
 {
     PlaneList.Add(plane);
 }