Skip to main content

sphere_fibonacci_point

Functions

multiply_add_fraction(a, b)number
sphere_fibonacci_point(output, output_offset, i, n)

Generate a spherical fibonacci point The points go from z = +1 down to z = -1 in a spiral. To generate samples on the +z hemisphere, just stop before i > N/2.

multiply_add_fraction(a, b) ⇒ number

Kind: global function

ParamType
anumber
bnumber

sphere_fibonacci_point(output, output_offset, i, n)

Generate a spherical fibonacci point The points go from z = +1 down to z = -1 in a spiral. To generate samples on the +z hemisphere, just stop before i > N/2.

Kind: global function
See: http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/

ParamTypeDescription
outputArray.<number> | Float32Array3d point
output_offsetnumber
inumberindex of a point, from 0 to n-1
nnumbertotal number of points