public bool Test(int3 h, int3 p, ref float t) { TessCellCompare tc = new TessCellCompare(); t = tc.Compare(h, p); return(t == 0); }
int GetEqualCellForCells(NativeArray <TessCell> cells, int count, TessCell p) { int l = 0; int h = count - 1; TessCellCompare tcc = new TessCellCompare(); while (l <= h) { int m; m = ((int)(l + h)) >> 1; int f = tcc.Compare(cells[m], p); if (f == 0) { return(m); } else if (f <= 0) { l = m + 1; } else { h = m - 1; } } return(-1); }