* Computes the linear index for the given i-j-k structured of a grid with * of N1 and N2 dimensions along its principal directions. For example, the * principal directions of a 3-D grid are Ni and Nj and likewise for a 2-D * grid along the XY plane. For a grid in the XZ plane however, the principal * directions are Ni and Nk. */
| 320 | * directions are Ni and Nk. |
| 321 | */ |
| 322 | static vtkIdType GetLinearIndex(const int i, const int j, const int k, const int N1, const int N2) |
| 323 | { |
| 324 | return ((static_cast<vtkIdType>(k) * N2 + j) * N1 + i); |
| 325 | } |
| 326 | |
| 327 | ///@{ |
| 328 | /** |
no outgoing calls
no test coverage detected