Eulerian Smoke Simulation on the GPU
src/ComputeUtil.cpp File Reference

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.

Detailed Description

Implementation file for the Compute Utility functions.


Function Documentation

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.

Parameters:
[in]_ithe first element
[in]_jthe second element
[in]_kthe third element
[in]_maxXthe extent of the X dimension
[in]_maxYthe extent of the Y dimension
[in]_maxZthe extent of the Z dimension
 All Classes Files Functions Variables