diff options
author | Arun Isaac | 2021-03-19 21:46:38 +0530 |
---|---|---|
committer | Arun Isaac | 2021-03-19 21:46:38 +0530 |
commit | 5b8aa0c2cb6f187eba957de9400913b83bbf539a (patch) | |
tree | c3a3331ba5dc2bb969a77da2b1478080b867da1d /src | |
parent | 30104d8ee20733cf4e2195ef9a6cd202a7a257e5 (diff) | |
download | nsmc-5b8aa0c2cb6f187eba957de9400913b83bbf539a.tar.gz nsmc-5b8aa0c2cb6f187eba957de9400913b83bbf539a.tar.lz nsmc-5b8aa0c2cb6f187eba957de9400913b83bbf539a.zip |
Factor out random planar angle generation.
* contrib/cone-vector.py (random_planar_angle_cdf,
random_vector_on_disk): New functions.
(random_vector_on_spherical_cap): Rename to
random_vector_on_spherical_cap_cdf. Call random_planar_angle_cdf and
random_vector_on_disk.
(sample_code): Call random_vector_on_spherical_cap_cdf instead of
random_vector_on_spherical_cap.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions