Eulerian Smoke Simulation on the GPU
|
Implementation file for the Compute Utility functions. More...
#include "ComputeUtil.h"
Functions | |
int | divideUp (int _a, int _b) |
ngl::Vector | normalizeTuple (int _i, int _j, int _k, int _maxX, int _maxY, int _maxZ) |
Normalizes an integer tuple in the range -1 to 1. |
Implementation file for the Compute Utility functions.
ngl::Vector normalizeTuple | ( | int | _i, |
int | _j, | ||
int | _k, | ||
int | _maxX, | ||
int | _maxY, | ||
int | _maxZ | ||
) |
Normalizes an integer tuple in the range -1 to 1.
[in] | _i | the first element |
[in] | _j | the second element |
[in] | _k | the third element |
[in] | _maxX | the extent of the X dimension |
[in] | _maxY | the extent of the Y dimension |
[in] | _maxZ | the extent of the Z dimension |