random point in sphere
| 179 | |
| 180 | // random point in sphere |
| 181 | inline vec3f randSphere() |
| 182 | { |
| 183 | vec3f r; |
| 184 | |
| 185 | do { |
| 186 | r = svrand(); |
| 187 | } while (length(r) > 1.0f); |
| 188 | |
| 189 | return r; |
| 190 | } |
| 191 | |
| 192 | // initialize in regular grid |
| 193 | void ParticleSystem::initGrid(vec3f start, |
no test coverage detected