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
Param | Type |
---|---|
a | number |
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.
Kind: global function
See: http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
Param | Type | Description |
---|---|---|
output | Array.<number> | Float32Array | 3d point |
output_offset | number | |
i | number | index of a point, from 0 to n-1 |
n | number | total number of points |