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); }
public static void Remove(PlaneVertexArray plane) { PlaneList.Remove(plane); }
public static void Add(PlaneVertexArray plane) { PlaneList.Add(plane); }