private int Bucket(Halfedge halfEdge) { int theBucket = (int)((halfEdge.ystar - _ymin) / _deltay * _hashsize); if (theBucket < 0) theBucket = 0; if (theBucket >= _hashsize) theBucket = _hashsize - 1; return theBucket; }