Definition in file pstools.cpp.
#include <math.h>
#include <stdlib.h>
#include "pstools.h"
Include dependency graph for pstools.cpp:

Go to the source code of this file.
Defines | |
| #define | MY_EXP_RES 10000 |
| #define | MY_EXP_RANGE 6. |
| #define | MY_EXP_DELTA .0012 |
| #define | MY_EXP_TABLE_RES 10001 |
Functions | |
| double | psRandom (void) |
| Random number generator. | |
| void | clampInt (int &x, int max) |
| Clamps x to [0,max-1]. | |
| gmVector3 | randOrtho (gmVector3 x) |
| Generates a radom orthogonal vector. | |
| double | fastExp (double arg) |
| Fast approximation to exp. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Clamps x to [0,max-1].
Definition at line 29 of file pstools.cpp. Referenced by ParticleLocalityGrid::findCell(). |
|
|
Fast approximation to exp.
Definition at line 72 of file pstools.cpp. Referenced by ParticleRepulsion::applyForce(), and SingularityRepulsion::repelTarget(). |
|
|
Random number generator.
Definition at line 18 of file pstools.cpp. Referenced by SilhouetteFate::cleanup(), and ParticleFate::cleanup(). |
|
|
Generates a radom orthogonal vector.
Definition at line 43 of file pstools.cpp. Referenced by ParticleFate::cleanup(), SilhouetteFate::cleanup(), and ParticleRendererGL::drawDisk(). |
1.3.4