------------------------------------------------------------------------------ Calculate the distance between the point x to the bucket "nei". WARNING!!!!! Be very careful altering this routine. Simple changes to this routine can make is 25% slower!!!!
| 110 | // routine can make is 25% slower!!!! |
| 111 | // |
| 112 | double vtkBucketList::Distance2ToBucket(const double x[3], const int nei[3]) |
| 113 | { |
| 114 | double bounds[6]; |
| 115 | |
| 116 | bounds[0] = nei[0] * this->hX + this->bX; |
| 117 | bounds[1] = (nei[0] + 1) * this->hX + this->bX; |
| 118 | bounds[2] = nei[1] * this->hY + this->bY; |
| 119 | bounds[3] = (nei[1] + 1) * this->hY + this->bY; |
| 120 | bounds[4] = nei[2] * this->hZ + this->bZ; |
| 121 | bounds[5] = (nei[2] + 1) * this->hZ + this->bZ; |
| 122 | |
| 123 | return this->Distance2ToBounds(x, bounds); |
| 124 | } |
| 125 | |
| 126 | //------------------------------------------------------------------------------ |
| 127 | // Calculate the distance between the point x and the specified bounds |
no test coverage detected