diff options
author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-18 11:29:26 -0400 |
---|---|---|
committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-18 11:29:26 -0400 |
commit | 9306f888fea903accf827870a122a2f6f76e472e (patch) | |
tree | 0fc29e94d8e2e35f04f4d3392326f205403a7fcb /photon.py | |
parent | 909309302c83423994e9c1dd36a3309890a67b90 (diff) | |
download | chroma-9306f888fea903accf827870a122a2f6f76e472e.tar.gz chroma-9306f888fea903accf827870a122a2f6f76e472e.tar.bz2 chroma-9306f888fea903accf827870a122a2f6f76e472e.zip |
added some more documentation and a more accurate miniature version of lbne
Diffstat (limited to 'photon.py')
-rw-r--r-- | photon.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -17,14 +17,11 @@ def uniform_sphere(size=None): c = np.sqrt(1-u**2) - x = c*np.cos(theta) - y = c*np.sin(theta) - z = u - points = np.empty((x.size, 3)) - points[:,0] = x - points[:,1] = y - points[:,2] = z + + points[:,0] = c*np.cos(theta) + points[:,1] = c*np.sin(theta) + points[:,2] = u if size is None: return points[0] |