diff options
author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-17 16:58:36 -0400 |
---|---|---|
committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-17 16:58:36 -0400 |
commit | 909309302c83423994e9c1dd36a3309890a67b90 (patch) | |
tree | ade31f97ba43172820efd7bb80d5dd70bffa87c5 /photon.py | |
parent | 8df5c2109151613d6ed1c124095c8e6e0f98f3af (diff) | |
download | chroma-909309302c83423994e9c1dd36a3309890a67b90.tar.gz chroma-909309302c83423994e9c1dd36a3309890a67b90.tar.bz2 chroma-909309302c83423994e9c1dd36a3309890a67b90.zip |
added documentation
Diffstat (limited to 'photon.py')
-rw-r--r-- | photon.py | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1,4 +1,3 @@ -import time import numpy as np def uniform_sphere(size=None): @@ -13,8 +12,6 @@ def uniform_sphere(size=None): source: Weisstein, Eric W. "Sphere Point Picking." Mathworld. """ - t0 = time.time() - theta, u = np.random.uniform(0.0, 2*np.pi, size), \ np.random.uniform(-1.0, 1.0, size) |