@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
13 lines • 623 B
TypeScript
/**
* 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.
*
* @see http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
*
* @param {number[]|Float32Array} output 3d point
* @param {number} output_offset
* @param {number} i index of a point, from 0 to n-1
* @param {number} n total number of points
*/
export function sphere_fibonacci_point(output: number[] | Float32Array, output_offset: number, i: number, n: number): void;
//# sourceMappingURL=sphere_fibonacci_point.d.ts.map