@math.gl/culling 3.6.0-alpha.1 → 3.6.0-alpha.4
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/dist/es5/constants.js +1 -1
- package/dist/es5/index.js +12 -12
- package/dist/es5/lib/algorithms/bounding-box-from-points.js +123 -72
- package/dist/es5/lib/algorithms/bounding-box-from-points.js.map +1 -1
- package/dist/es5/lib/algorithms/bounding-sphere-from-points.js +109 -81
- package/dist/es5/lib/algorithms/bounding-sphere-from-points.js.map +1 -1
- package/dist/es5/lib/algorithms/compute-eigen-decomposition.js +37 -36
- package/dist/es5/lib/algorithms/compute-eigen-decomposition.js.map +1 -1
- package/dist/es5/lib/bounding-volumes/axis-aligned-bounding-box.js +75 -63
- package/dist/es5/lib/bounding-volumes/axis-aligned-bounding-box.js.map +1 -1
- package/dist/es5/lib/bounding-volumes/bounding-sphere.js +111 -90
- package/dist/es5/lib/bounding-volumes/bounding-sphere.js.map +1 -1
- package/dist/es5/lib/bounding-volumes/oriented-bounding-box.js +212 -187
- package/dist/es5/lib/bounding-volumes/oriented-bounding-box.js.map +1 -1
- package/dist/es5/lib/culling-volume.js +111 -74
- package/dist/es5/lib/culling-volume.js.map +1 -1
- package/dist/es5/lib/perspective-frustum.js +78 -57
- package/dist/es5/lib/perspective-frustum.js.map +1 -1
- package/dist/es5/lib/perspective-off-center-frustum.js +113 -98
- package/dist/es5/lib/perspective-off-center-frustum.js.map +1 -1
- package/dist/es5/lib/plane.js +70 -52
- package/dist/es5/lib/plane.js.map +1 -1
- package/dist/esm/lib/algorithms/bounding-sphere-from-points.js.map +1 -1
- package/dist/lib/algorithms/bounding-sphere-from-points.d.ts.map +1 -1
- package/dist/lib/algorithms/bounding-sphere-from-points.js +0 -2
- package/package.json +4 -4
- package/src/lib/algorithms/bounding-sphere-from-points.ts +0 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "3.6.0-alpha.
|
|
8
|
+
"version": "3.6.0-alpha.4",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"webgl",
|
|
11
11
|
"javascript",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.12.0",
|
|
38
|
-
"@math.gl/core": "3.6.0-alpha.
|
|
39
|
-
"gl-matrix": "
|
|
38
|
+
"@math.gl/core": "3.6.0-alpha.4",
|
|
39
|
+
"gl-matrix": "^3.4.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d2ce86da8b6f07f0af0236818138442f68e1d8e4"
|
|
42
42
|
}
|
|
@@ -159,11 +159,9 @@ export default function makeBoundingSphereFromPoints(
|
|
|
159
159
|
|
|
160
160
|
if (ritterRadius < naiveRadius) {
|
|
161
161
|
ritterCenter.to(result.center);
|
|
162
|
-
// @ts-ignore TS2540: Cannot assign to 'radius' because it is a read-only property.
|
|
163
162
|
result.radius = ritterRadius;
|
|
164
163
|
} else {
|
|
165
164
|
naiveCenter.to(result.center);
|
|
166
|
-
// @ts-ignore TS2540: Cannot assign to 'radius' because it is a read-only property.
|
|
167
165
|
result.radius = naiveRadius;
|
|
168
166
|
}
|
|
169
167
|
|