fibonaccisphere: Evenly distributed n points on a sphere
Description
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/
matrix of n points (in n rows), in Cartesian and/or spherical coordinates.
Arguments
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); theta=colatitute (=polar angle=angle from z-axis), phi=longitude (=azimuth angle),