@cearth/tools 2.3.0 → 2.4.0
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/math/transform.d.ts +15 -0
- package/dist/math/transform.d.ts.map +1 -1
- package/dist/tools.iife.js +24 -24
- package/dist/tools.js +249 -240
- package/dist/tools.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/tools.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { WebGLConstants as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import { WebGLConstants as P, Cartesian3 as l, HeadingPitchRoll as I, Quaternion as w, Matrix3 as g, Matrix4 as a, TranslationRotationScale as M, Plane as it, Transforms as E, BoundingSphere as C, JulianDate as h, Cartesian2 as x, ComponentDatatype as Z, Cartographic as D, Cartesian4 as O, Rectangle as v, Matrix2 as F } from "cesium";
|
|
2
|
+
import { MatrixComposeOrder as _, mat4_decompose_quat as rt, mat4_compose_quat as at, getMatrixOfQuantizedMeshTerrainData as st, Geometry as ct, workerApi as lt, GeometricRelation as z, computeSignAreaOfPolygon3 as K, computeRelationAreaOfPolygon2Terrain as ut } from "@web-3d/tools";
|
|
3
|
+
function Ut(t) {
|
|
4
|
+
return q(t) || J(t) || ft(t);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function q(t) {
|
|
7
7
|
return "modelMatrix" in t;
|
|
8
8
|
}
|
|
9
9
|
function J(t) {
|
|
10
10
|
return "position" in t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ft(t) {
|
|
13
13
|
return "positions" in t;
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const mt = {
|
|
16
16
|
/**
|
|
17
17
|
* 8-bit signed byte corresponding to <code>gl.BYTE</code> and the type
|
|
18
18
|
* of an element in <code>Int8Array</code>.
|
|
19
19
|
*/
|
|
20
|
-
[
|
|
20
|
+
[P.BYTE]: Int8Array,
|
|
21
21
|
/**
|
|
22
22
|
* 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
|
|
23
23
|
* of an element in <code>Uint8Array</code>.
|
|
24
24
|
*/
|
|
25
|
-
[
|
|
25
|
+
[P.UNSIGNED_BYTE]: Uint8Array,
|
|
26
26
|
/**
|
|
27
27
|
* 16-bit signed short corresponding to <code>SHORT</code> and the type
|
|
28
28
|
* of an element in <code>Int16Array</code>.
|
|
29
29
|
*/
|
|
30
|
-
[
|
|
30
|
+
[P.SHORT]: Int16Array,
|
|
31
31
|
/**
|
|
32
32
|
* 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
|
|
33
33
|
* of an element in <code>Uint16Array</code>.
|
|
34
34
|
*/
|
|
35
|
-
[
|
|
35
|
+
[P.UNSIGNED_SHORT]: Uint16Array,
|
|
36
36
|
/**
|
|
37
37
|
* 32-bit signed int corresponding to <code>INT</code> and the type
|
|
38
38
|
* of an element in <code>Int32Array</code>.
|
|
39
39
|
*/
|
|
40
|
-
[
|
|
40
|
+
[P.INT]: Int32Array,
|
|
41
41
|
/**
|
|
42
42
|
* 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
|
|
43
43
|
* of an element in <code>Uint32Array</code>.
|
|
44
44
|
*/
|
|
45
|
-
[
|
|
45
|
+
[P.UNSIGNED_INT]: Uint32Array,
|
|
46
46
|
/**
|
|
47
47
|
* 32-bit floating-point corresponding to <code>FLOAT</code> and the type
|
|
48
48
|
* of an element in <code>Float32Array</code>.
|
|
49
49
|
*/
|
|
50
|
-
[
|
|
50
|
+
[P.FLOAT]: Float32Array,
|
|
51
51
|
/**
|
|
52
52
|
* 64-bit floating-point corresponding to <code>gl.DOUBLE</code> (in Desktop OpenGL;
|
|
53
53
|
* this is not supported in WebGL, and is emulated in Cesium via {@link GeometryPipeline.encodeAttribute})
|
|
54
54
|
* and the type of an element in <code>Float64Array</code>.
|
|
55
55
|
*/
|
|
56
|
-
[
|
|
56
|
+
[P.DOUBLE]: Float64Array
|
|
57
57
|
};
|
|
58
|
-
var
|
|
58
|
+
var pt = /* @__PURE__ */ ((t) => (t[t.x = 0] = "x", t[t.y = 1] = "y", t[t.z = 2] = "z", t))(pt || {}), b = /* @__PURE__ */ ((t) => (t.x = "roll", t.y = "pitch", t.z = "heading", t))(b || {});
|
|
59
59
|
((t) => {
|
|
60
60
|
function o(i) {
|
|
61
61
|
for (let [r, s] of Object.entries(t))
|
|
@@ -68,12 +68,12 @@ var ft = /* @__PURE__ */ ((t) => (t[t.x = 0] = "x", t[t.y = 1] = "y", t[t.z = 2]
|
|
|
68
68
|
}
|
|
69
69
|
t.toCartesian3 = n;
|
|
70
70
|
function e(i) {
|
|
71
|
-
return new
|
|
71
|
+
return new I(-i[o("heading")], -i[o("pitch")], i[o("roll")]);
|
|
72
72
|
}
|
|
73
73
|
t.toHeadingPitchRoll = e;
|
|
74
|
-
})(
|
|
75
|
-
var
|
|
76
|
-
function
|
|
74
|
+
})(b || (b = {}));
|
|
75
|
+
var dt = /* @__PURE__ */ ((t) => (t[t.heading = 0] = "heading", t[t.pitch = 1] = "pitch", t[t.roll = 2] = "roll", t))(dt || {});
|
|
76
|
+
function $(t) {
|
|
77
77
|
const o = t?.world, { translation: n, rotation: e, scale: i } = o && typeof o == "object" ? o : { translation: o, rotation: o, scale: o };
|
|
78
78
|
return { ...t, worldTranslation: n, worldRotation: e, worldScale: i };
|
|
79
79
|
}
|
|
@@ -82,43 +82,43 @@ function G(t) {
|
|
|
82
82
|
const { axis: n, angle: e } = t;
|
|
83
83
|
return w.fromAxisAngle(n, e);
|
|
84
84
|
}
|
|
85
|
-
const o =
|
|
85
|
+
const o = b.toHeadingPitchRoll(t);
|
|
86
86
|
return w.fromHeadingPitchRoll(o);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Yt(t, o, n) {
|
|
89
89
|
const e = g.fromQuaternion(t), i = a.fromRotation(e), r = a.inverseTransformation(o, new a()), s = a.multiply(r, i, i);
|
|
90
|
-
return
|
|
90
|
+
return tt(s);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function tt(t, o) {
|
|
93
93
|
const n = a.getMatrix3(t, new g()), e = w.fromRotationMatrix(n);
|
|
94
|
-
return
|
|
94
|
+
return I.fromQuaternion(e, o);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function jt(t, o, n) {
|
|
97
97
|
n = n ?? new a();
|
|
98
98
|
const e = a.inverse(o, new a());
|
|
99
99
|
return a.multiply(e, t, n);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function yt(t, o, n) {
|
|
102
102
|
let e = w.computeAxis(t, new l());
|
|
103
103
|
if (e.equals(l.ZERO)) return null;
|
|
104
104
|
const i = w.computeAngle(t);
|
|
105
105
|
return e = a.multiplyByPointAsVector(o, e, e), w.fromAxisAngle(e, i);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Wt(t, o, n) {
|
|
108
108
|
let e = w.computeAxis(t, new l());
|
|
109
109
|
if (e.equals(l.ZERO)) return null;
|
|
110
110
|
const i = w.computeAngle(t), r = a.inverse(o, new a());
|
|
111
111
|
return e = a.multiplyByPointAsVector(r, e, e), w.fromAxisAngle(e, i);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function L(t, o) {
|
|
114
114
|
let { translation: n, rotation: e, scale: i } = t;
|
|
115
|
-
const { referFrame: r, worldTranslation: s, worldRotation: c, worldScale: u } =
|
|
115
|
+
const { referFrame: r, worldTranslation: s, worldRotation: c, worldScale: u } = $(o);
|
|
116
116
|
let f = null;
|
|
117
|
-
return n && (s || (n = a.multiplyByPointAsVector(r, n, new l()))), e && (f = G(e), c || (f =
|
|
117
|
+
return n && (s || (n = a.multiplyByPointAsVector(r, n, new l()))), e && (f = G(e), c || (f = yt(f, r))), i && (u || (i = a.multiplyByPointAsVector(r, i, new l()))), { translation: n, rotation: f, scale: i };
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function wt(t, o) {
|
|
120
120
|
let { translation: n, rotation: e, scale: i } = t;
|
|
121
|
-
const { referFrame: r, worldTranslation: s, worldRotation: c, worldScale: u } =
|
|
121
|
+
const { referFrame: r, worldTranslation: s, worldRotation: c, worldScale: u } = $(o), f = r ? a.inverse(r, new a()) : null;
|
|
122
122
|
let m = null;
|
|
123
123
|
if (n && s && (n = a.multiplyByPointAsVector(f, n, new l())), e && (m = G(e), c)) {
|
|
124
124
|
let p = w.computeAxis(m, new l());
|
|
@@ -129,9 +129,9 @@ function dt(t, o) {
|
|
|
129
129
|
}
|
|
130
130
|
return i && u && (i = a.multiplyByPointAsVector(f, i, new l())), { translation: n, rotation: m, scale: i };
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function gt(t, o) {
|
|
133
133
|
const n = o?.defaultMatrix;
|
|
134
|
-
let { translation: e, rotation: i, scale: r } =
|
|
134
|
+
let { translation: e, rotation: i, scale: r } = L(t, o);
|
|
135
135
|
if (n) {
|
|
136
136
|
if (e || (e = a.getTranslation(n, new l())), !i) {
|
|
137
137
|
const c = a.getMatrix3(n, new g());
|
|
@@ -139,22 +139,22 @@ function yt(t, o) {
|
|
|
139
139
|
}
|
|
140
140
|
r || (r = a.getScale(n, new l()));
|
|
141
141
|
}
|
|
142
|
-
const s = new
|
|
142
|
+
const s = new M(e ?? void 0, i ?? void 0, r ?? void 0);
|
|
143
143
|
return a.fromTranslationRotationScale(s);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
const { translation: o, rotation: n, scale: e } = t, i = n ? G(n) : void 0, r = new
|
|
145
|
+
function Xt(t) {
|
|
146
|
+
const { translation: o, rotation: n, scale: e } = t, i = n ? G(n) : void 0, r = new M(o ?? void 0, i, e ?? void 0);
|
|
147
147
|
return a.fromTranslationRotationScale(r);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ht(t, o, n) {
|
|
150
150
|
const e = l.subtract(o, t, new l()), i = l.subtract(n, t, new l()), r = l.cross(e, i, e);
|
|
151
151
|
return l.normalize(r, e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
const e =
|
|
155
|
-
return
|
|
153
|
+
function Zt(t, o, n) {
|
|
154
|
+
const e = ht(t, o, n);
|
|
155
|
+
return it.fromPointNormal(e, t);
|
|
156
156
|
}
|
|
157
|
-
function*
|
|
157
|
+
function* Kt(t, o = !0, n, e) {
|
|
158
158
|
const i = t.length, r = o ? i : i - 1, s = n || e ? l.prototype.equalsEpsilon : l.prototype.equals;
|
|
159
159
|
for (let c = 0; c < r; c++) {
|
|
160
160
|
const u = t[c];
|
|
@@ -172,25 +172,25 @@ function H(t, o, n) {
|
|
|
172
172
|
const e = a.inverse(o, new a()), i = a.multiply(t, e, e);
|
|
173
173
|
return a.multiply(o, i, n);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function $t(t, o, n, e) {
|
|
176
176
|
e = e ?? new a();
|
|
177
177
|
const i = a.inverse(n, new a());
|
|
178
178
|
let r = a.multiply(i, t, i);
|
|
179
179
|
return r = a.multiply(o, r, r), a.multiply(n, r, e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function tn(t, o, n) {
|
|
182
182
|
const e = a.fromTranslation(t);
|
|
183
183
|
return H(e, o, n);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function nn(t, o, n, e) {
|
|
186
186
|
const i = w.fromAxisAngle(t, o), r = g.fromQuaternion(i), s = a.fromRotation(r);
|
|
187
187
|
return H(s, n, e);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function on(t, o, n) {
|
|
190
190
|
const e = a.fromScale(t);
|
|
191
191
|
return H(e, o, n);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function en(t, o, n) {
|
|
194
194
|
const e = g.fromScale(o);
|
|
195
195
|
if (n)
|
|
196
196
|
for (const i of t)
|
|
@@ -202,37 +202,44 @@ function tn(t, o, n) {
|
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function rn(t, o) {
|
|
206
206
|
const { translation: n, rotation: e, scale: i } = t;
|
|
207
207
|
let r;
|
|
208
208
|
if (e) {
|
|
209
209
|
const { axis: c, angle: u } = e;
|
|
210
210
|
r = w.fromAxisAngle(c, u);
|
|
211
211
|
}
|
|
212
|
-
const s = new
|
|
212
|
+
const s = new M(n ?? void 0, r, i ?? void 0);
|
|
213
213
|
return a.fromTranslationRotationScale(s, o ?? void 0);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
|
|
217
|
-
const
|
|
218
|
-
return
|
|
215
|
+
function xt(t, o, n) {
|
|
216
|
+
n ??= new M();
|
|
217
|
+
const e = a.pack(t, []), i = [], r = [], s = [], c = o ? _[o] : _.trs;
|
|
218
|
+
return rt(i, s, r, e, c), l.unpack(i, 0, n.translation), l.unpack(r, 0, n.scale), w.unpack(s, 0, n.rotation), n;
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
function Tt(t, o) {
|
|
221
|
+
return xt(t, null, o);
|
|
222
|
+
}
|
|
223
|
+
function an(t, o, n) {
|
|
224
|
+
const e = l.pack(t.translation, []), i = l.pack(t.scale, []), r = w.pack(t.rotation, []), s = o ? _[o] : _.trs, c = at([], e, r, i, s);
|
|
225
|
+
return a.unpack(c, 0, n);
|
|
226
|
+
}
|
|
227
|
+
const vt = a.fromTranslationRotationScale;
|
|
228
|
+
function At(t) {
|
|
222
229
|
const o = a.inverse(t, new a()), n = new a();
|
|
223
230
|
function e(r, s) {
|
|
224
|
-
return s =
|
|
231
|
+
return s = vt(r, s), a.multiply(t, s, s);
|
|
225
232
|
}
|
|
226
233
|
function i(r, s) {
|
|
227
|
-
return a.multiply(o, r, n),
|
|
234
|
+
return a.multiply(o, r, n), Tt(n, s);
|
|
228
235
|
}
|
|
229
236
|
return { compose: e, decompose: i, referInverse: o };
|
|
230
237
|
}
|
|
231
|
-
function
|
|
238
|
+
function sn(t, o) {
|
|
232
239
|
const n = E.eastNorthUpToFixedFrame(t, o ?? void 0);
|
|
233
|
-
return { ...
|
|
240
|
+
return { ...At(n), refer: n };
|
|
234
241
|
}
|
|
235
|
-
function
|
|
242
|
+
function cn(t) {
|
|
236
243
|
let o = t.boundingSphere;
|
|
237
244
|
if (o)
|
|
238
245
|
return o;
|
|
@@ -245,7 +252,7 @@ function en(t) {
|
|
|
245
252
|
const e = t.positions;
|
|
246
253
|
return e?.length > 0 ? C.fromPoints(e) : null;
|
|
247
254
|
}
|
|
248
|
-
function
|
|
255
|
+
function ln(t, o) {
|
|
249
256
|
o = o ?? new l();
|
|
250
257
|
const n = t.position;
|
|
251
258
|
if (n)
|
|
@@ -256,12 +263,12 @@ function rn(t, o) {
|
|
|
256
263
|
const i = t.positions;
|
|
257
264
|
return i?.length > 0 ? C.fromPoints(i).center : null;
|
|
258
265
|
}
|
|
259
|
-
function
|
|
260
|
-
let { translation: e, rotation: i, scale: r } =
|
|
261
|
-
const s = new
|
|
262
|
-
return
|
|
266
|
+
function un(t, o, n) {
|
|
267
|
+
let { translation: e, rotation: i, scale: r } = L(o, n);
|
|
268
|
+
const s = new M(e ?? void 0, i ?? void 0, r ?? void 0), c = a.fromTranslationRotationScale(s);
|
|
269
|
+
return Pt(t, c);
|
|
263
270
|
}
|
|
264
|
-
function
|
|
271
|
+
function Pt(t, o) {
|
|
265
272
|
const n = t.modelMatrix;
|
|
266
273
|
if (n)
|
|
267
274
|
return a.multiply(o, n, n), t.modelMatrix = n, !0;
|
|
@@ -284,12 +291,12 @@ function Tt(t, o) {
|
|
|
284
291
|
}
|
|
285
292
|
return !1;
|
|
286
293
|
}
|
|
287
|
-
function
|
|
288
|
-
const e =
|
|
289
|
-
return
|
|
294
|
+
function fn(t, o, n) {
|
|
295
|
+
const e = Rt(t), i = gt(o, { ...n, defaultMatrix: e });
|
|
296
|
+
return Mt(t, i);
|
|
290
297
|
}
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
298
|
+
function Mt(t, o) {
|
|
299
|
+
if (q(t))
|
|
293
300
|
return t.modelMatrix = o, !0;
|
|
294
301
|
const n = a.getTranslation(o, new l());
|
|
295
302
|
if (J(t)) {
|
|
@@ -309,11 +316,11 @@ function vt(t, o) {
|
|
|
309
316
|
}
|
|
310
317
|
return !1;
|
|
311
318
|
}
|
|
312
|
-
function
|
|
313
|
-
if (
|
|
319
|
+
function Rt(t) {
|
|
320
|
+
if (q(t))
|
|
314
321
|
return t.modelMatrix;
|
|
315
322
|
if (J(t)) {
|
|
316
|
-
const n = t.position, e = t.scale ?? 1, i = new
|
|
323
|
+
const n = t.position, e = t.scale ?? 1, i = new M(n, void 0, new l(e, e, e));
|
|
317
324
|
return a.fromTranslationRotationScale(i);
|
|
318
325
|
}
|
|
319
326
|
const o = t.positions;
|
|
@@ -323,8 +330,8 @@ function At(t) {
|
|
|
323
330
|
}
|
|
324
331
|
return null;
|
|
325
332
|
}
|
|
326
|
-
function
|
|
327
|
-
let { translation: n, rotation: e, scale: i } =
|
|
333
|
+
function mn(t, o) {
|
|
334
|
+
let { translation: n, rotation: e, scale: i } = L(o, o);
|
|
328
335
|
const { reset: r, referFrame: s } = o, c = h.now(), u = !r;
|
|
329
336
|
if (e) {
|
|
330
337
|
let A = e;
|
|
@@ -343,38 +350,38 @@ function cn(t, o) {
|
|
|
343
350
|
t.position = A;
|
|
344
351
|
}
|
|
345
352
|
if (!s) return;
|
|
346
|
-
const { translation: f, rotation: m, scale: p } =
|
|
353
|
+
const { translation: f, rotation: m, scale: p } = wt(o, o), d = new M(f ?? void 0, m ?? void 0, p ?? void 0);
|
|
347
354
|
let y = a.fromTranslationRotationScale(d);
|
|
348
355
|
if (y = H(y, s, y), p) {
|
|
349
356
|
const A = t.box;
|
|
350
|
-
A &&
|
|
357
|
+
A && St(A, p);
|
|
351
358
|
const T = t.cylinder;
|
|
352
|
-
T &&
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
const
|
|
363
|
-
|
|
359
|
+
T && Dt(T, p);
|
|
360
|
+
const Y = t.ellipse;
|
|
361
|
+
Y && Vt(Y, p);
|
|
362
|
+
const j = t.ellipsoid;
|
|
363
|
+
j && Bt(j, p);
|
|
364
|
+
const W = t.model;
|
|
365
|
+
W && It(W, p, r);
|
|
366
|
+
const X = t.plane;
|
|
367
|
+
X && Ot(X, p);
|
|
368
|
+
}
|
|
369
|
+
const R = t.corridor;
|
|
370
|
+
R && Ct(R, y, p);
|
|
364
371
|
const V = t.polygon;
|
|
365
|
-
V &&
|
|
372
|
+
V && bt(V, y, p);
|
|
366
373
|
const S = t.polyline;
|
|
367
|
-
S &&
|
|
368
|
-
const
|
|
369
|
-
|
|
374
|
+
S && Nt(S, y, p);
|
|
375
|
+
const B = t.polylineVolume;
|
|
376
|
+
B && Ft(B, y, p);
|
|
370
377
|
const N = t.wall;
|
|
371
|
-
N &&
|
|
378
|
+
N && _t(N, y, p);
|
|
372
379
|
}
|
|
373
|
-
function
|
|
380
|
+
function St(t, o) {
|
|
374
381
|
const n = h.now(), e = t.dimensions?.getValue(n);
|
|
375
382
|
e && (t.dimensions = l.multiplyComponents(e, o, e));
|
|
376
383
|
}
|
|
377
|
-
function
|
|
384
|
+
function Dt(t, o) {
|
|
378
385
|
const n = h.now(), e = t.length?.getValue(n);
|
|
379
386
|
e != null && (t.length = e * o.z);
|
|
380
387
|
const i = Math.max(o.x, o.y), r = t.topRadius?.getValue(n);
|
|
@@ -382,7 +389,7 @@ function Pt(t, o) {
|
|
|
382
389
|
const s = o.z, c = t.bottomRadius?.getValue(n);
|
|
383
390
|
c != null && (t.bottomRadius = c * s);
|
|
384
391
|
}
|
|
385
|
-
function
|
|
392
|
+
function Vt(t, o) {
|
|
386
393
|
const n = h.now(), e = Math.max(o.x, o.y), i = o.z, r = t.semiMajorAxis?.getValue(n);
|
|
387
394
|
r != null && (t.semiMajorAxis = r * e);
|
|
388
395
|
const s = t.semiMinorAxis?.getValue(n);
|
|
@@ -392,13 +399,13 @@ function Mt(t, o) {
|
|
|
392
399
|
const u = t.extrudedHeight?.getValue(n);
|
|
393
400
|
u != null && (t.extrudedHeight = u * i);
|
|
394
401
|
}
|
|
395
|
-
function
|
|
402
|
+
function Bt(t, o) {
|
|
396
403
|
const n = h.now(), e = t.radii?.getValue(n);
|
|
397
404
|
e != null && (t.radii = l.multiplyComponents(e, o, e));
|
|
398
405
|
const i = t.innerRadii?.getValue(n);
|
|
399
406
|
i != null && (t.innerRadii = l.multiplyComponents(i, o, i));
|
|
400
407
|
}
|
|
401
|
-
function
|
|
408
|
+
function It(t, o, n) {
|
|
402
409
|
let e = l.maximumComponent(o);
|
|
403
410
|
if (!n) {
|
|
404
411
|
const i = h.now(), r = t.scale?.getValue(i) ?? 1;
|
|
@@ -406,11 +413,11 @@ function Dt(t, o, n) {
|
|
|
406
413
|
}
|
|
407
414
|
t.scale = e;
|
|
408
415
|
}
|
|
409
|
-
function
|
|
416
|
+
function Ot(t, o) {
|
|
410
417
|
const n = h.now(), e = x.fromCartesian3(o), i = t.dimensions?.getValue(n);
|
|
411
418
|
i && (t.dimensions = x.multiplyComponents(i, e, i));
|
|
412
419
|
}
|
|
413
|
-
function
|
|
420
|
+
function Ct(t, o, n) {
|
|
414
421
|
const e = h.now(), i = new l(), r = t.positions?.getValue(e);
|
|
415
422
|
if (r?.length > 0) {
|
|
416
423
|
for (const p of r)
|
|
@@ -422,23 +429,23 @@ function It(t, o, n) {
|
|
|
422
429
|
const f = t.height?.getValue(e), m = s.z;
|
|
423
430
|
f != null && (t.height = f * m);
|
|
424
431
|
}
|
|
425
|
-
function
|
|
432
|
+
function bt(t, o, n) {
|
|
426
433
|
const e = h.now(), i = new l(), r = t.hierarchy?.getValue(e);
|
|
427
|
-
r && (
|
|
434
|
+
r && (nt(r, o), t.hierarchy = r);
|
|
428
435
|
const c = (n ?? a.getScale(o, i)).z, u = t.height?.getValue(e);
|
|
429
436
|
u != null && (t.height = u * c);
|
|
430
437
|
const f = t.extrudedHeight?.getValue(e);
|
|
431
438
|
f != null && (t.extrudedHeight = f * c);
|
|
432
439
|
}
|
|
433
|
-
function
|
|
440
|
+
function nt(t, o) {
|
|
434
441
|
const { positions: n, holes: e } = t;
|
|
435
442
|
for (const i of n)
|
|
436
443
|
a.multiplyByPoint(o, i, i);
|
|
437
444
|
t.positions = n;
|
|
438
445
|
for (const i of e)
|
|
439
|
-
|
|
446
|
+
nt(i, o);
|
|
440
447
|
}
|
|
441
|
-
function
|
|
448
|
+
function Nt(t, o, n) {
|
|
442
449
|
const e = h.now(), i = new l(), r = t.positions?.getValue(e);
|
|
443
450
|
if (r?.length > 0) {
|
|
444
451
|
for (const f of r)
|
|
@@ -448,7 +455,7 @@ function bt(t, o, n) {
|
|
|
448
455
|
const s = n ?? a.getScale(o, i), c = Math.max(s.x, s.y);
|
|
449
456
|
t.width?.getValue(e) != null && (t.width = c * scale);
|
|
450
457
|
}
|
|
451
|
-
function
|
|
458
|
+
function Ft(t, o, n) {
|
|
452
459
|
const e = h.now(), i = new l(), r = t.positions?.getValue(e);
|
|
453
460
|
if (r?.length > 0) {
|
|
454
461
|
for (const f of r)
|
|
@@ -462,7 +469,7 @@ function Ct(t, o, n) {
|
|
|
462
469
|
t.shape = u;
|
|
463
470
|
}
|
|
464
471
|
}
|
|
465
|
-
function
|
|
472
|
+
function _t(t, o, n) {
|
|
466
473
|
const e = h.now(), i = new l(), r = t.positions?.getValue(e);
|
|
467
474
|
if (r?.length > 0) {
|
|
468
475
|
for (const m of r)
|
|
@@ -474,53 +481,53 @@ function Ot(t, o, n) {
|
|
|
474
481
|
const f = t.maximumHeights?.getValue(e);
|
|
475
482
|
f != null && (graphicsgraphics.maximumHeights = f.map((m) => m * c));
|
|
476
483
|
}
|
|
477
|
-
function
|
|
484
|
+
function pn(t, o, n) {
|
|
478
485
|
const e = h.now(), i = t.position?.getValue(e);
|
|
479
486
|
if (!i) return null;
|
|
480
487
|
const r = t.orientation?.getValue(e), s = t.model?.scale?.getValue(e) ?? 1, c = new l(s, s, s), u = o(i, n), f = a.inverse(u, new a()), m = a.multiplyByPoint(f, i, new l()), p = { translation: m, position: i, scale: c, rotation: new l() };
|
|
481
488
|
let d;
|
|
482
489
|
if (r) {
|
|
483
|
-
const V = g.fromQuaternion(r), S = a.fromRotation(V),
|
|
484
|
-
d =
|
|
490
|
+
const V = g.fromQuaternion(r), S = a.fromRotation(V), B = a.multiply(f, S, S), N = tt(B);
|
|
491
|
+
d = b.toCartesian3(N), p.rotation = d;
|
|
485
492
|
}
|
|
486
|
-
const y = new
|
|
487
|
-
let
|
|
488
|
-
return p.matrix =
|
|
493
|
+
const y = new M(m ?? void 0, d ? G(d) : void 0, c ?? void 0);
|
|
494
|
+
let R = a.fromTranslationRotationScale(y);
|
|
495
|
+
return p.matrix = R, p;
|
|
489
496
|
}
|
|
490
|
-
function
|
|
497
|
+
function dn(t) {
|
|
491
498
|
return t.values.length / t.componentsPerAttribute;
|
|
492
499
|
}
|
|
493
|
-
function
|
|
494
|
-
return
|
|
500
|
+
function yn(t) {
|
|
501
|
+
return Z.getSizeInBytes(t.componentDatatype) * t.componentsPerAttribute;
|
|
495
502
|
}
|
|
496
|
-
function
|
|
497
|
-
const { componentDatatype: o, vertexBuffer: n } = t, e =
|
|
503
|
+
function wn(t) {
|
|
504
|
+
const { componentDatatype: o, vertexBuffer: n } = t, e = mt[o];
|
|
498
505
|
if (!e) throw new Error("不支持的数据类型");
|
|
499
|
-
const i = n.sizeInBytes, r =
|
|
506
|
+
const i = n.sizeInBytes, r = Z.getSizeInBytes(o), s = i / r;
|
|
500
507
|
let c = new e(s);
|
|
501
508
|
return n.getBufferData(c, 0, 0, i), c;
|
|
502
509
|
}
|
|
503
|
-
new x(), new l(), new
|
|
504
|
-
const Q = [new x(), new x(), new x(), new x()],
|
|
505
|
-
new
|
|
506
|
-
const
|
|
510
|
+
new x(), new l(), new O();
|
|
511
|
+
const Q = [new x(), new x(), new x(), new x()], k = [new l(), new l(), new l(), new l()];
|
|
512
|
+
new O(), new O(), new O(), new O();
|
|
513
|
+
const zt = [new D(), new D(), new D(), new D()];
|
|
507
514
|
new v(), new v(), new v(), new v();
|
|
508
515
|
new F(), new F(), new F(), new F();
|
|
509
516
|
new g(), new g(), new g(), new g();
|
|
510
517
|
new a(), new a(), new a(), new a();
|
|
511
518
|
new w(), new w(), new w(), new w();
|
|
512
|
-
new
|
|
513
|
-
function
|
|
514
|
-
const { stride: n, vertexArray: e } = t, i = e.length / n, r =
|
|
519
|
+
new I(), new I(), new I(), new I();
|
|
520
|
+
function gn(t, o = []) {
|
|
521
|
+
const { stride: n, vertexArray: e } = t, i = e.length / n, r = k[0];
|
|
515
522
|
for (let s = 0; s < i; s++)
|
|
516
523
|
t.encoding.decodePosition(e, s, r), l.pack(r, o, o.length);
|
|
517
524
|
return o;
|
|
518
525
|
}
|
|
519
|
-
function
|
|
526
|
+
function hn(t, o, n) {
|
|
520
527
|
return t.encoding.decodePosition(t.vertexArray, o, n);
|
|
521
528
|
}
|
|
522
|
-
function
|
|
523
|
-
const { stride: o, vertices: n, indices: e, encoding: i } = t, r = n.length / o, s =
|
|
529
|
+
function Gt(t) {
|
|
530
|
+
const { stride: o, vertices: n, indices: e, encoding: i } = t, r = n.length / o, s = k[0], c = new Float32Array(r * 3), u = Q[0], f = new Float32Array(r * 2), m = new Float32Array(r);
|
|
524
531
|
for (let p = 0; p < r; p++) {
|
|
525
532
|
i.decodePosition(n, p, s), l.pack(s, c, p * 3);
|
|
526
533
|
const d = i.decodeHeight(n, p);
|
|
@@ -536,7 +543,7 @@ function Ft(t) {
|
|
|
536
543
|
count: r
|
|
537
544
|
};
|
|
538
545
|
}
|
|
539
|
-
function
|
|
546
|
+
function ot(t, o) {
|
|
540
547
|
const n = t._surface._tilesToRender, e = [], i = new v();
|
|
541
548
|
for (const r of n) {
|
|
542
549
|
const { rectangle: s } = r;
|
|
@@ -544,48 +551,48 @@ function nt(t, o) {
|
|
|
544
551
|
}
|
|
545
552
|
return e;
|
|
546
553
|
}
|
|
547
|
-
function
|
|
554
|
+
function xn(t) {
|
|
548
555
|
const o = t._surface._tilesToRender;
|
|
549
|
-
return
|
|
556
|
+
return Ht(o);
|
|
550
557
|
}
|
|
551
|
-
function
|
|
558
|
+
function Ht(t) {
|
|
552
559
|
const o = /* @__PURE__ */ new Set();
|
|
553
560
|
for (const r of t)
|
|
554
561
|
o.add(r.level);
|
|
555
562
|
const n = [...o], e = Math.min.apply(Math, n), i = Math.max.apply(Math, n);
|
|
556
563
|
return { min: e, max: i };
|
|
557
564
|
}
|
|
558
|
-
function
|
|
565
|
+
function et(t) {
|
|
559
566
|
return t.map((o) => {
|
|
560
|
-
const { mesh: n, terrainData: e } = o.data, i =
|
|
567
|
+
const { mesh: n, terrainData: e } = o.data, i = Gt(n), { x: r, y: s, level: c } = o, u = [e._minimumHeight, e._maximumHeight];
|
|
561
568
|
return { data: i, encoding: n.encoding, rectangle: o.rectangle, heightRange: u, x: r, y: s, level: c };
|
|
562
569
|
});
|
|
563
570
|
}
|
|
564
|
-
function
|
|
571
|
+
function Tn(t) {
|
|
565
572
|
const { x: o, y: n, level: e } = t;
|
|
566
573
|
return t.data.terrainData.upsample(t.tilingScheme, o, n, e, o, n, e);
|
|
567
574
|
}
|
|
568
|
-
function
|
|
569
|
-
const { east: e, north: i, south: r, west: s } = o, c =
|
|
575
|
+
function kt(t, o, n) {
|
|
576
|
+
const { east: e, north: i, south: r, west: s } = o, c = zt[0];
|
|
570
577
|
c.longitude = s, c.latitude = r;
|
|
571
578
|
const u = t.positionToTileXY(c, n, Q[0]);
|
|
572
579
|
c.longitude = e, c.latitude = i;
|
|
573
580
|
const f = t.positionToTileXY(c, n, Q[1]), [m, p] = u.x < f.x ? [u.x, f.x] : [f.x, u.x], [d, y] = u.y < f.y ? [u.y, f.y] : [f.y, u.y];
|
|
574
581
|
return { min: [m, d], max: [p, y] };
|
|
575
582
|
}
|
|
576
|
-
const
|
|
577
|
-
function
|
|
578
|
-
return g.getScale(t.halfAxes, o), l.multiplyByScalar(o, 2 *
|
|
583
|
+
const Qt = 32767;
|
|
584
|
+
function vn(t, o = new l()) {
|
|
585
|
+
return g.getScale(t.halfAxes, o), l.multiplyByScalar(o, 2 * Qt, o), o;
|
|
579
586
|
}
|
|
580
|
-
function
|
|
587
|
+
function U(t, o, n) {
|
|
581
588
|
return n = t.getLocalCurvature(o, n), n.x = 1 / n.x, n.y = 1 / n.y, n;
|
|
582
589
|
}
|
|
583
|
-
function
|
|
584
|
-
n =
|
|
590
|
+
function An(t, o, n) {
|
|
591
|
+
n = U(t, o, n);
|
|
585
592
|
const e = Math.PI / 180;
|
|
586
593
|
return x.multiplyByScalar(n, e, n);
|
|
587
594
|
}
|
|
588
|
-
function
|
|
595
|
+
function Et(t) {
|
|
589
596
|
const { _quantizedVertices: o, _indices: n } = t, e = o.length / 3, i = {
|
|
590
597
|
type: "Float32Array",
|
|
591
598
|
start: 0,
|
|
@@ -606,17 +613,17 @@ function _t(t) {
|
|
|
606
613
|
indices: n
|
|
607
614
|
};
|
|
608
615
|
}
|
|
609
|
-
async function
|
|
616
|
+
async function Pn(t, o, n, e) {
|
|
610
617
|
const i = await t.requestTileGeometry(o, n, e);
|
|
611
618
|
if (!i) return null;
|
|
612
|
-
const r =
|
|
613
|
-
return p.mapForAggregate(m, (y,
|
|
619
|
+
const r = Et(i), s = [data._minimumHeight, data._maximumHeight], c = t.tilingScheme.tileXYToRectangle(o, n, e), u = st(c, s), f = a.fromArray(u, void 0), m = ["u", "v", "height"], p = new ct({ ...r, positionNames: m }), d = new l();
|
|
620
|
+
return p.mapForAggregate(m, (y, R) => (l.fromArray(y, 0, d), a.multiplyByPoint(f, d, d), new D(d.x, d.y, d.z)));
|
|
614
621
|
}
|
|
615
|
-
async function
|
|
616
|
-
const { min: e, max: i } =
|
|
622
|
+
async function Mn(t, o, n) {
|
|
623
|
+
const { min: e, max: i } = kt(t.tilingScheme, o, n), r = [], s = [];
|
|
617
624
|
for (let u = e[0]; u <= i[0]; u++)
|
|
618
625
|
for (let f = e[1]; f <= i[1]; f++) {
|
|
619
|
-
const m =
|
|
626
|
+
const m = qt(t, u, f, n);
|
|
620
627
|
m && (r.push(m), s.push({ x: u, y: f }));
|
|
621
628
|
}
|
|
622
629
|
return (await Promise.all(r)).map(function(u, f) {
|
|
@@ -624,23 +631,23 @@ async function Tn(t, o, n) {
|
|
|
624
631
|
return { x: m, y: p, level: n, data: u };
|
|
625
632
|
});
|
|
626
633
|
}
|
|
627
|
-
async function
|
|
634
|
+
async function qt(t, o, n, e) {
|
|
628
635
|
return t.getTileDataAvailable(o, n, e) ? (await t.loadTileDataAvailability(o, n, e), t.requestTileGeometry(o, n, e)) : Promise.reject("不可用");
|
|
629
636
|
}
|
|
630
|
-
async function
|
|
631
|
-
const n = v.fromCartesianArray(o), e = D.toCartesian(v.center(n)), i =
|
|
637
|
+
async function Rn(t, o) {
|
|
638
|
+
const n = v.fromCartesianArray(o), e = D.toCartesian(v.center(n)), i = U(t.ellipsoid, e), r = [i.x, i.y, 1], s = ot(t, n), c = et(s), u = E.eastNorthUpToFixedFrame(e);
|
|
632
639
|
a.inverseTransformation(u, u);
|
|
633
640
|
const f = o.map((d) => {
|
|
634
|
-
const y = a.multiplyByPoint(u, d,
|
|
641
|
+
const y = a.multiplyByPoint(u, d, k[2]);
|
|
635
642
|
return [y.x, y.y];
|
|
636
643
|
});
|
|
637
644
|
let m = 0;
|
|
638
645
|
const p = c.map(async (d) => {
|
|
639
|
-
const { data: y, ...
|
|
640
|
-
m += await
|
|
646
|
+
const { data: y, ...R } = d, { position: V, uv: S, height: B } = y.attributes;
|
|
647
|
+
m += await lt.computeRelationAreaOfPolygon2Terrain({
|
|
641
648
|
args: [{
|
|
642
649
|
...y,
|
|
643
|
-
...
|
|
650
|
+
...R,
|
|
644
651
|
positionNames: ["position"],
|
|
645
652
|
region: f,
|
|
646
653
|
// @ts-ignore
|
|
@@ -648,27 +655,27 @@ async function vn(t, o) {
|
|
|
648
655
|
relation: z.Contain | z.Intersect,
|
|
649
656
|
scale: r
|
|
650
657
|
}],
|
|
651
|
-
transfer: [V.array.buffer, S.array.buffer,
|
|
658
|
+
transfer: [V.array.buffer, S.array.buffer, B.array.buffer, y.indices.buffer]
|
|
652
659
|
});
|
|
653
660
|
});
|
|
654
661
|
if (await Promise.all(p), m === 0 || isNaN(m)) {
|
|
655
662
|
console.warn("贴地面积计算异常,已回退到椭球面投影面积", m);
|
|
656
663
|
const d = o.map((y) => l.pack(y, []));
|
|
657
|
-
return m =
|
|
664
|
+
return m = K(d), Math.abs(m);
|
|
658
665
|
}
|
|
659
666
|
return m;
|
|
660
667
|
}
|
|
661
|
-
function
|
|
662
|
-
const n = v.fromCartesianArray(o), e = D.toCartesian(v.center(n)), i =
|
|
668
|
+
function Sn(t, o) {
|
|
669
|
+
const n = v.fromCartesianArray(o), e = D.toCartesian(v.center(n)), i = U(t.ellipsoid, e), r = [i.x, i.y, 1], s = ot(t, n), c = et(s), u = E.eastNorthUpToFixedFrame(e);
|
|
663
670
|
a.inverseTransformation(u, u);
|
|
664
671
|
const f = o.map((p) => {
|
|
665
|
-
const d = a.multiplyByPoint(u, p,
|
|
672
|
+
const d = a.multiplyByPoint(u, p, k[2]);
|
|
666
673
|
return [d.x, d.y];
|
|
667
674
|
});
|
|
668
675
|
let m = 0;
|
|
669
676
|
for (const p of c) {
|
|
670
677
|
const { data: d, ...y } = p;
|
|
671
|
-
m +=
|
|
678
|
+
m += ut({
|
|
672
679
|
...d,
|
|
673
680
|
...y,
|
|
674
681
|
positionNames: ["position"],
|
|
@@ -682,84 +689,86 @@ function An(t, o) {
|
|
|
682
689
|
if (m === 0 || isNaN(m)) {
|
|
683
690
|
console.warn("贴地面积计算异常,已回退到椭球面投影面积", m);
|
|
684
691
|
const p = o.map((d) => l.pack(d, []));
|
|
685
|
-
return m =
|
|
692
|
+
return m = K(p), Math.abs(m);
|
|
686
693
|
}
|
|
687
694
|
return m;
|
|
688
695
|
}
|
|
689
696
|
export {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
697
|
+
pt as CartesianAxis,
|
|
698
|
+
dt as HeadingPitchRollComponent,
|
|
699
|
+
b as Xyz_Hpr,
|
|
700
|
+
$t as applyMatrixReferFrame,
|
|
701
|
+
Pt as applyTransformInPrimitive,
|
|
702
|
+
un as applyTransformInfoPrimitive,
|
|
703
|
+
mt as componentDatatypeTypedArrayMap,
|
|
704
|
+
yn as computeAttributeSizeInBytes,
|
|
705
|
+
ht as computeNormalOfCoplanars,
|
|
706
|
+
Sn as computeTerrainAreaOfPolygon,
|
|
707
|
+
Rn as computeTerrainAreaOfPolygon_worker,
|
|
708
|
+
dn as computeVertexNumOfAttribute,
|
|
709
|
+
Zt as createPlaneOfCoplanars,
|
|
710
|
+
$ as flatTransformInfoOptions,
|
|
711
|
+
wn as getAttributeData,
|
|
712
|
+
cn as getBoundingSphere,
|
|
713
|
+
gn as getDecodePositionsOfTerrainMesh,
|
|
714
|
+
pn as getEntityInfo,
|
|
715
|
+
Et as getGeometryDataOfQuantizedMeshTerrainData,
|
|
716
|
+
Gt as getGeometryDataOfTerrainMesh,
|
|
717
|
+
Ht as getLevelRangeOfQuadtreeTiles,
|
|
718
|
+
U as getLocalCurvatureRadius,
|
|
719
|
+
An as getLocalSizePerDegrees,
|
|
720
|
+
wt as getLocalTransformInfo,
|
|
721
|
+
rn as getMatrix4OfTransformInfo,
|
|
722
|
+
Kt as getNeighborPairs,
|
|
723
|
+
ln as getPosition,
|
|
724
|
+
hn as getPositionOfTerrainMesh,
|
|
725
|
+
ot as getRenderedQuadtreeTilesOfIntersectRectangle,
|
|
726
|
+
xn as getRenderedTileLevelRange,
|
|
727
|
+
vn as getScaleOfTerrainDataByOrientedBoundingBox,
|
|
728
|
+
qt as getTerrainData,
|
|
729
|
+
Tn as getTerrainDataOfQuadtreeTile,
|
|
730
|
+
Mn as getTerrainDatasOfIntersectRectangle,
|
|
731
|
+
et as getTerrainDatasOfQuadtreeTiles,
|
|
732
|
+
kt as getTileRangeOfIntersectRectangle,
|
|
733
|
+
Rt as getTransform,
|
|
734
|
+
Pn as getWorldDataOfQuantizedMeshTerrainData,
|
|
735
|
+
gt as getWorldMatrix,
|
|
736
|
+
L as getWorldTransformInfo,
|
|
737
|
+
q as isMatrixPrimitive,
|
|
738
|
+
ft as isPositionListPrimitive,
|
|
732
739
|
J as isPositionPrimitive,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
740
|
+
Ut as isPrimitiveObject,
|
|
741
|
+
yt as localQuaternionToWorld,
|
|
742
|
+
At as localTRS_WorldMatrix4_Convert,
|
|
743
|
+
sn as localTRS_WorldMatrix4_ENU_Convert,
|
|
737
744
|
H as makeMatrixReferFrame,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
+
vt as mat4_compose,
|
|
746
|
+
an as mat4_composeByOrder,
|
|
747
|
+
Tt as mat4_decompose,
|
|
748
|
+
xt as mat4_decomposeByOrder,
|
|
749
|
+
tt as matrix4ToHeadingPitchRoll,
|
|
750
|
+
Yt as quaternionToHeadingPitchRoll,
|
|
751
|
+
Mt as resetTransformInPrimitive,
|
|
752
|
+
fn as resetTransformInfoPrimitive,
|
|
753
|
+
nn as rotateMatrixReferFrame,
|
|
745
754
|
G as rotationInfoToQuaternion,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
755
|
+
St as scaleBoxGraphics,
|
|
756
|
+
Dt as scaleCylinderGraphics,
|
|
757
|
+
Vt as scaleEllipseGraphics,
|
|
758
|
+
Bt as scaleEllipsoidGraphics,
|
|
759
|
+
on as scaleMatrixReferFrame,
|
|
760
|
+
It as scaleModelGraphics,
|
|
761
|
+
Ot as scalePlaneGraphics,
|
|
762
|
+
en as scalePoints,
|
|
763
|
+
Ct as transformCorridorGraphics,
|
|
764
|
+
mn as transformEntity,
|
|
765
|
+
Xt as transformInfoToMatrix,
|
|
766
|
+
bt as transformPolygonGraphics,
|
|
767
|
+
nt as transformPolygonHierarchy,
|
|
768
|
+
Nt as transformPolylineGraphics,
|
|
769
|
+
Ft as transformPolylineVolumeGraphics,
|
|
770
|
+
_t as transformWallGraphics,
|
|
771
|
+
tn as translationMatrixReferFrame,
|
|
772
|
+
jt as worldMatrixToLocal,
|
|
773
|
+
Wt as worldQuaternionToLocal
|
|
765
774
|
};
|