From 087cecd2097198a3920084df21c60fe6764f4de8 Mon Sep 17 00:00:00 2001 From: pgovyadi Date: Wed, 3 Aug 2016 15:42:11 -0500 Subject: [PATCH] Revert "un-did an accedental removal" --- stim/gl/gl_spider.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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