View source: R/fibonaccisphere.R
fibonaccisphere | R Documentation |
Distributes n points on a sphere in a relatively even fashion following the generalised Fibonacci algorithm, described at http://extremelearning.com.au/evenly-distributing-points-on-a-sphere/
fibonaccisphere(n = 1000, r = 1, out.xyz = TRUE, out.sph = FALSE)
n |
number of points to be placed on the sphere |
r |
radius |
out.xyz |
logical flag specifying whether to return Cartesian coordinates (default is TRUE) |
out.sph |
logical flag specifying whether to return spherical coordinates (default is FALSE); |
matrix of n points (in n rows), in Cartesian and/or spherical coordinates.
Danail Obreschkow
runif3
## plot standard projections of a 1000-point Fibonacci sphere
xyz = fibonaccisphere()
plot(xyz, asp=1, pch=16, cex=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.