diff --git a/stim/gl/gl_spider.h b/stim/gl/gl_spider.h index 25efd24..549ecf2 100644 --- a/stim/gl/gl_spider.h +++ b/stim/gl/gl_spider.h @@ -1387,12 +1387,13 @@ class gl_spider : public virtual gl_texture void MonteCarloDirectionVectors(int nSamples, float solidAngle = 2*M_PI) { - float PHI[2], Z[2], range; + float PHI[2], Z[2]; PHI[0] = asin(solidAngle/2); PHI[1] = asin(0); Z[0] = cos(PHI[0]); Z[1] = cos(PHI[1]); + range = Z[0] - Z[1]; -- libgit2 0.21.4