Commit 40db18bb15cb1c154c51d0a6517ed1550297e7a6

Authored by Pavel Govyadinov
1 parent 9474c283

un-did an accedental removal

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
stim/gl/gl_spider.h
... ... @@ -1387,13 +1387,12 @@ class gl_spider : public virtual gl_texture<T>
1387 1387 void
1388 1388 MonteCarloDirectionVectors(int nSamples, float solidAngle = 2*M_PI)
1389 1389 {
1390   - float PHI[2], Z[2];
  1390 + float PHI[2], Z[2], range;
1391 1391 PHI[0] = asin(solidAngle/2);
1392 1392 PHI[1] = asin(0);
1393 1393  
1394 1394 Z[0] = cos(PHI[0]);
1395 1395 Z[1] = cos(PHI[1]);
1396   -
1397 1396  
1398 1397 range = Z[0] - Z[1];
1399 1398  
... ...