Create uniformly distributed vectors on the sphere
Source
Adapted fom rotasym::r_unif_sphere() and rayUniform() from
geologyGeometry by Davis, J.R.
Arguments
- n
integer. number of random samples to be generated
- class
character. Coordinate class of the output vectors.
- method
character. The algorithm for generating uniformly distributed vectors. Either
"geologyGeometry"(the default) for generating random points in Cartesian coordinates (as in thegeologyGeometrycode compilation),"sfs"for the "Spherical Fibonacci Spiral points on a sphere","gss"for "Golden Section Spiral points on a sphere", or the algorithmrotasym::r_unif_sphere()from the rotasym package.
Details
"sfs" algorithm is from on John Burkardt (http://people.sc.fsu.edu/~jburkardt/),
"gss is from http://www.softimageblog.com/archives/115




