Commit 087cecd2097198a3920084df21c60fe6764f4de8

Authored by Pavel Govyadinov
1 parent 40db18bb

Revert "un-did an accedental removal"

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