public int Calc(int b, IntCoordinate c) { for (int k = 0; k < _points * 4; k++) { _distances[k] = c.Distance(_vp[b, k]); } int val = (int)(255.0 * Math.Sqrt((double)Select(_closest) / _area)); return(255 - val); // invert }
public int Calc(int b, IntCoordinate c) { for (int k = 0; k < _points * 4; k++) { _distances[k] = c.Distance(_vp[b, k]); } int val = (int) (255.0 * Math.Sqrt((double) Select(_closest) / _area)); return 255 - val; // invert }