Description Usage Arguments Value Author(s) See Also Examples
Generate randomly oriented vectors in 3D, following an isotropic distribution (optionally truncated to a region).
1 |
n |
number of random vectors to be generated |
r |
2-vector specifying the range of radii |
azimuth |
2-vector specifying the range of azimuth angles (maximum range 0..2*pi) |
polarangle |
2-vector specifying the range of polar angles (maximum range 0..pi) |
Returns an n-by-3 array of n vectors.
Danail Obreschkow
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.