Given a point x, determine which bin it is in. Note that points are clamped to lie inside of the locator.
| 151 | // Given a point x, determine which bin it is in. Note that points |
| 152 | // are clamped to lie inside of the locator. |
| 153 | vtkIdType GetBinIndex(const double* x) const |
| 154 | { |
| 155 | int ijk[3]; |
| 156 | this->GetBinIndices(x, ijk); |
| 157 | return ijk[0] + ijk[1] * xD + ijk[2] * xyD; |
| 158 | } |
| 159 | |
| 160 | vtkIdType GetBinIndex(int ijk[3]) const { return ijk[0] + ijk[1] * xD + ijk[2] * xyD; } |
| 161 |
no test coverage detected