50 static sureInline(
void) swap(
int* a,
int* b);
56 static sureInline(
void) swap(
int* a,
int* b)
67 int dominant(
point* PS,
int* idx,
int n,
72 struct dominantData* dod
86 localidx = dod->localidx;
102 projectOne(&newo, p, hypoct, o);
108 intercept(&(PTS[i]), &newo, &(PS[idx[i]]));
126 R = (classify(&(PTS[localidx[j]]), &(PTS[i])) & ~exclude) == 0;
152 R = (classify(&(PTS[localidx[j]]), &(PTS[localidx[k]])) & ~exclude) == 0;
158 localidx[i] = localidx[k];
168 swap(&idx[j], &idx[localidx[j]]);
Simple point interface. Contains simple point manipulation functions.
Point is an array of coordinates, in a struct for simple and fast copy.