|
1 | 1 | import { Vector3, Spherical, MathUtils, Ray, Matrix4, Sphere, Euler } from 'three'; |
2 | 2 | import { swapToGeoFrame, latitudeToSphericalPhi } from './GeoUtils.js'; |
3 | 3 |
|
4 | | -const _spherical = new Spherical(); |
5 | | -const _norm = new Vector3(); |
6 | | -const _vec = new Vector3(); |
7 | | -const _vec2 = new Vector3(); |
8 | | -const _matrix = new Matrix4(); |
9 | | -const _matrix2 = new Matrix4(); |
10 | | -const _matrix3 = new Matrix4(); |
11 | | -const _sphere = new Sphere(); |
12 | | -const _euler = new Euler(); |
13 | | - |
14 | | -const _vecX = new Vector3(); |
15 | | -const _vecY = new Vector3(); |
16 | | -const _vecZ = new Vector3(); |
17 | | -const _pos = new Vector3(); |
18 | | - |
19 | | -const _ray = new Ray(); |
| 4 | +const _spherical = /* @__PURE__ */ new Spherical(); |
| 5 | +const _norm = /* @__PURE__ */ new Vector3(); |
| 6 | +const _vec = /* @__PURE__ */ new Vector3(); |
| 7 | +const _vec2 = /* @__PURE__ */ new Vector3(); |
| 8 | +const _matrix = /* @__PURE__ */ new Matrix4(); |
| 9 | +const _matrix2 = /* @__PURE__ */ new Matrix4(); |
| 10 | +const _matrix3 = /* @__PURE__ */ new Matrix4(); |
| 11 | +const _sphere = /* @__PURE__ */ new Sphere(); |
| 12 | +const _euler = /* @__PURE__ */ new Euler(); |
| 13 | + |
| 14 | +const _vecX = /* @__PURE__ */ new Vector3(); |
| 15 | +const _vecY = /* @__PURE__ */ new Vector3(); |
| 16 | +const _vecZ = /* @__PURE__ */ new Vector3(); |
| 17 | +const _pos = /* @__PURE__ */ new Vector3(); |
| 18 | + |
| 19 | +const _ray = /* @__PURE__ */ new Ray(); |
20 | 20 |
|
21 | 21 | const EPSILON12 = 1e-12; |
22 | 22 | const CENTER_EPS = 0.1; |
|
0 commit comments