@woosh/meep-engine 2.119.75 → 2.119.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generate a spherical fibonacci point
|
|
3
|
+
* 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.
|
|
3
4
|
*
|
|
4
|
-
* http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
|
|
5
|
-
*
|
|
6
|
-
* To generate a nearly uniform point distribution on the unit sphere of size N, do
|
|
7
|
-
* for (const i = 0.0; i < N; i += 1.0) {
|
|
8
|
-
* sphere_fibonacci_point(points, i*3, i, N);
|
|
9
|
-
* }
|
|
5
|
+
* @see http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
|
|
10
6
|
*
|
|
11
|
-
* 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.
|
|
12
7
|
* @param {number[]|Float32Array} output 3d point
|
|
13
8
|
* @param {number} output_offset
|
|
14
9
|
* @param {number} i index of a point, from 0 to n-1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sphere_fibonacci_point.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/sphere/sphere_fibonacci_point.js"],"names":[],"mappings":"AAgBA
|
|
1
|
+
{"version":3,"file":"sphere_fibonacci_point.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/sphere/sphere_fibonacci_point.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH,+CALW,MAAM,EAAE,GAAC,YAAY,iBACrB,MAAM,KACN,MAAM,KACN,MAAM,QAoBhB"}
|
|
@@ -16,15 +16,10 @@ const PHI = Math.sqrt(5) * 0.5 + 0.5;
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Generate a spherical fibonacci point
|
|
19
|
+
* 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.
|
|
19
20
|
*
|
|
20
|
-
* http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
|
|
21
|
-
*
|
|
22
|
-
* To generate a nearly uniform point distribution on the unit sphere of size N, do
|
|
23
|
-
* for (const i = 0.0; i < N; i += 1.0) {
|
|
24
|
-
* sphere_fibonacci_point(points, i*3, i, N);
|
|
25
|
-
* }
|
|
21
|
+
* @see http://lgdv.cs.fau.de/publications/publication/Pub.2015.tech.IMMD.IMMD9.spheri/
|
|
26
22
|
*
|
|
27
|
-
* 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.
|
|
28
23
|
* @param {number[]|Float32Array} output 3d point
|
|
29
24
|
* @param {number} output_offset
|
|
30
25
|
* @param {number} i index of a point, from 0 to n-1
|