@woosh/meep-engine 2.121.8 → 2.121.11
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 +1 -1
- package/src/core/binary/to_half_float_uint16.d.ts +1 -2
- package/src/core/binary/to_half_float_uint16.d.ts.map +1 -1
- package/src/core/binary/to_half_float_uint16.js +1 -2
- package/src/core/geom/ConicRay.d.ts +8 -0
- package/src/core/geom/ConicRay.d.ts.map +1 -1
- package/src/core/geom/ConicRay.js +11 -0
- package/src/core/geom/Quaternion.d.ts.map +1 -1
- package/src/core/geom/Quaternion.js +102 -49
- package/src/core/geom/Vector1.d.ts.map +1 -1
- package/src/core/geom/Vector1.js +11 -8
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector2.js +89 -59
- package/src/core/geom/Vector3.d.ts.map +1 -1
- package/src/core/geom/Vector3.js +108 -68
- package/src/core/geom/Vector4.d.ts +230 -40
- package/src/core/geom/Vector4.d.ts.map +1 -1
- package/src/core/geom/Vector4.js +36 -1
- package/src/core/geom/packing/max-rect/cutArea.d.ts.map +1 -1
- package/src/core/geom/packing/max-rect/cutArea.js +7 -8
- package/src/core/geom/packing/miniball/Miniball.d.ts +188 -11
- package/src/core/geom/packing/miniball/PointSet.d.ts +46 -3
- package/src/core/geom/vec3/v3_slerp.d.ts.map +1 -1
- package/src/core/geom/vec3/v3_slerp.js +2 -0
- package/src/core/math/EPSILON.d.ts.map +1 -1
- package/src/core/math/EPSILON.js +1 -1
- package/src/engine/ecs/EntityManager.d.ts +181 -35
- package/src/engine/ecs/EntityManager.d.ts.map +1 -1
- package/src/engine/ecs/EntityManager.js +11 -9
- package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts +6 -1
- package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts.map +1 -1
- package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.d.ts +1 -1
- package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/sampler2d_to_f16.d.ts.map +1 -1
- package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.js +1 -1
- package/editor/tools/GridPaintTool.d.ts +0 -17
- package/editor/tools/GridPaintTool.d.ts.map +0 -1
- package/editor/tools/SelectionTool.d.ts +0 -27
- package/editor/tools/SelectionTool.d.ts.map +0 -1
- package/editor/tools/TopDownCameraControlTool.d.ts +0 -13
- package/editor/tools/TopDownCameraControlTool.d.ts.map +0 -1
package/src/core/geom/Vector2.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Alex Goldring
|
|
3
|
-
* @copyright Alex Goldring 14/02/14.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
import { assert } from "../assert.js";
|
|
7
2
|
import Signal from "../events/signal/Signal.js";
|
|
8
3
|
import { clamp } from "../math/clamp.js";
|
|
@@ -17,12 +12,15 @@ import { v2_dot } from "./vec2/v2_dot.js";
|
|
|
17
12
|
import { v2_length } from "./vec2/v2_length.js";
|
|
18
13
|
import { v2_length_sqr } from "./vec2/v2_length_sqr.js";
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @author Alex Goldring
|
|
17
|
+
* @copyright Alex Goldring 14/02/14.
|
|
18
|
+
*/
|
|
19
|
+
export class Vector2 {
|
|
21
20
|
/**
|
|
22
21
|
*
|
|
23
22
|
* @param {number} [x=0]
|
|
24
23
|
* @param {number} [y=0]
|
|
25
|
-
* @constructor
|
|
26
24
|
*/
|
|
27
25
|
constructor(x = 0, y = 0) {
|
|
28
26
|
assert.isNumber(x, 'x');
|
|
@@ -43,16 +41,21 @@ class Vector2 {
|
|
|
43
41
|
*/
|
|
44
42
|
this.y = y;
|
|
45
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @readonly
|
|
46
|
+
* @type {Signal<number,number,number,number>}
|
|
47
|
+
*/
|
|
46
48
|
this.onChanged = new Signal();
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
/**
|
|
50
52
|
*
|
|
51
53
|
* @param {number[]|Float32Array} array
|
|
52
|
-
* @param {number} offset
|
|
54
|
+
* @param {number} [offset]
|
|
55
|
+
* @returns {this}
|
|
53
56
|
*/
|
|
54
57
|
fromArray(array, offset = 0) {
|
|
55
|
-
this.set(
|
|
58
|
+
return this.set(
|
|
56
59
|
array[offset],
|
|
57
60
|
array[offset + 1]
|
|
58
61
|
);
|
|
@@ -61,9 +64,12 @@ class Vector2 {
|
|
|
61
64
|
/**
|
|
62
65
|
*
|
|
63
66
|
* @param {number[]|Float32Array} array
|
|
64
|
-
* @param {number} offset
|
|
67
|
+
* @param {number} [offset]
|
|
65
68
|
*/
|
|
66
69
|
toArray(array, offset = 0) {
|
|
70
|
+
assert.isArrayLike(array, 'array');
|
|
71
|
+
assert.isNonNegativeInteger(offset, 'offset');
|
|
72
|
+
|
|
67
73
|
array[offset] = this.x;
|
|
68
74
|
array[offset + 1] = this.y;
|
|
69
75
|
}
|
|
@@ -80,7 +86,7 @@ class Vector2 {
|
|
|
80
86
|
*
|
|
81
87
|
* @param {number} x
|
|
82
88
|
* @param {number} y
|
|
83
|
-
* @returns {
|
|
89
|
+
* @returns {this}
|
|
84
90
|
*/
|
|
85
91
|
set(x, y) {
|
|
86
92
|
assert.isNumber(x, 'x');
|
|
@@ -99,7 +105,9 @@ class Vector2 {
|
|
|
99
105
|
if (this.onChanged.hasHandlers()) {
|
|
100
106
|
this.onChanged.send4(x, y, oldX, oldY);
|
|
101
107
|
}
|
|
108
|
+
|
|
102
109
|
}
|
|
110
|
+
|
|
103
111
|
return this;
|
|
104
112
|
}
|
|
105
113
|
|
|
@@ -107,6 +115,7 @@ class Vector2 {
|
|
|
107
115
|
*
|
|
108
116
|
* @param {number} x
|
|
109
117
|
* @param {number} y
|
|
118
|
+
* @returns {this}
|
|
110
119
|
*/
|
|
111
120
|
setSilent(x, y) {
|
|
112
121
|
assert.isNumber(x, 'x');
|
|
@@ -118,12 +127,13 @@ class Vector2 {
|
|
|
118
127
|
this.x = x;
|
|
119
128
|
this.y = y;
|
|
120
129
|
|
|
130
|
+
return this;
|
|
121
131
|
}
|
|
122
132
|
|
|
123
133
|
/**
|
|
124
134
|
*
|
|
125
135
|
* @param {number} x
|
|
126
|
-
* @returns {
|
|
136
|
+
* @returns {this}
|
|
127
137
|
*/
|
|
128
138
|
setX(x) {
|
|
129
139
|
return this.set(x, this.y);
|
|
@@ -132,7 +142,7 @@ class Vector2 {
|
|
|
132
142
|
/**
|
|
133
143
|
*
|
|
134
144
|
* @param {number} y
|
|
135
|
-
* @returns {
|
|
145
|
+
* @returns {this}
|
|
136
146
|
*/
|
|
137
147
|
setY(y) {
|
|
138
148
|
return this.set(this.x, y);
|
|
@@ -142,7 +152,7 @@ class Vector2 {
|
|
|
142
152
|
*
|
|
143
153
|
* @param {number} x
|
|
144
154
|
* @param {number} y
|
|
145
|
-
* @returns {
|
|
155
|
+
* @returns {this}
|
|
146
156
|
*/
|
|
147
157
|
_sub(x, y) {
|
|
148
158
|
return this.set(this.x - x, this.y - y);
|
|
@@ -151,7 +161,7 @@ class Vector2 {
|
|
|
151
161
|
/**
|
|
152
162
|
*
|
|
153
163
|
* @param {Vector2} other
|
|
154
|
-
* @returns {
|
|
164
|
+
* @returns {this}
|
|
155
165
|
*/
|
|
156
166
|
sub(other) {
|
|
157
167
|
return this._sub(other.x, other.y);
|
|
@@ -161,14 +171,15 @@ class Vector2 {
|
|
|
161
171
|
*
|
|
162
172
|
* @param {Vector2} a
|
|
163
173
|
* @param {Vector2} b
|
|
174
|
+
* @returns {this}
|
|
164
175
|
*/
|
|
165
176
|
subVectors(a, b) {
|
|
166
|
-
this.set(a.x - b.x, a.y - b.y);
|
|
177
|
+
return this.set(a.x - b.x, a.y - b.y);
|
|
167
178
|
}
|
|
168
179
|
|
|
169
180
|
/**
|
|
170
181
|
* performs Math.floor operation on x and y
|
|
171
|
-
* @returns {
|
|
182
|
+
* @returns {this}
|
|
172
183
|
*/
|
|
173
184
|
floor() {
|
|
174
185
|
return this.set(Math.floor(this.x), Math.floor(this.y));
|
|
@@ -176,7 +187,7 @@ class Vector2 {
|
|
|
176
187
|
|
|
177
188
|
/**
|
|
178
189
|
* performs Math.ceil operation on x and y
|
|
179
|
-
* @returns {
|
|
190
|
+
* @returns {this}
|
|
180
191
|
*/
|
|
181
192
|
ceil() {
|
|
182
193
|
return this.set(Math.ceil(this.x), Math.ceil(this.y));
|
|
@@ -184,16 +195,17 @@ class Vector2 {
|
|
|
184
195
|
|
|
185
196
|
/**
|
|
186
197
|
* Round both components to nearest integer
|
|
198
|
+
* @returns {this}
|
|
187
199
|
*/
|
|
188
200
|
round() {
|
|
189
201
|
const x = Math.round(this.x);
|
|
190
202
|
const y = Math.round(this.y);
|
|
191
|
-
this.set(x, y);
|
|
203
|
+
return this.set(x, y);
|
|
192
204
|
}
|
|
193
205
|
|
|
194
206
|
/**
|
|
195
207
|
* performs Math.abs operation on x and y
|
|
196
|
-
* @returns {
|
|
208
|
+
* @returns {this}
|
|
197
209
|
*/
|
|
198
210
|
abs() {
|
|
199
211
|
return this.set(Math.abs(this.x), Math.abs(this.y));
|
|
@@ -203,7 +215,7 @@ class Vector2 {
|
|
|
203
215
|
*
|
|
204
216
|
* @param {number} x
|
|
205
217
|
* @param {number} y
|
|
206
|
-
* @returns {
|
|
218
|
+
* @returns {this}
|
|
207
219
|
*/
|
|
208
220
|
_mod(x, y) {
|
|
209
221
|
return this.set(this.x % x, this.y % y);
|
|
@@ -212,7 +224,7 @@ class Vector2 {
|
|
|
212
224
|
/**
|
|
213
225
|
*
|
|
214
226
|
* @param {Vector2} other
|
|
215
|
-
* @returns {
|
|
227
|
+
* @returns {this}
|
|
216
228
|
*/
|
|
217
229
|
mod(other) {
|
|
218
230
|
return this._mod(other.x, other.y);
|
|
@@ -221,7 +233,7 @@ class Vector2 {
|
|
|
221
233
|
/**
|
|
222
234
|
*
|
|
223
235
|
* @param {Vector2} other
|
|
224
|
-
* @returns {
|
|
236
|
+
* @returns {this}
|
|
225
237
|
*/
|
|
226
238
|
divide(other) {
|
|
227
239
|
return this.set(this.x / other.x, this.y / other.y);
|
|
@@ -230,7 +242,7 @@ class Vector2 {
|
|
|
230
242
|
/**
|
|
231
243
|
*
|
|
232
244
|
* @param {Vector2} other
|
|
233
|
-
* @returns {
|
|
245
|
+
* @returns {this}
|
|
234
246
|
*/
|
|
235
247
|
multiply(other) {
|
|
236
248
|
return this._multiply(other.x, other.y);
|
|
@@ -240,20 +252,21 @@ class Vector2 {
|
|
|
240
252
|
*
|
|
241
253
|
* @param {number} x
|
|
242
254
|
* @param {number} y
|
|
243
|
-
* @returns {
|
|
255
|
+
* @returns {this}
|
|
244
256
|
*/
|
|
245
257
|
_multiply(x, y) {
|
|
246
258
|
return this.set(this.x * x, this.y * y);
|
|
247
259
|
}
|
|
248
260
|
|
|
249
261
|
/**
|
|
250
|
-
*
|
|
262
|
+
* Component-size MAX operator
|
|
251
263
|
* @param {Vector2} other
|
|
252
|
-
* @returns {
|
|
264
|
+
* @returns {this}
|
|
253
265
|
*/
|
|
254
266
|
max(other) {
|
|
255
267
|
const x = max2(this.x, other.x);
|
|
256
268
|
const y = max2(this.y, other.y);
|
|
269
|
+
|
|
257
270
|
return this.set(x, y);
|
|
258
271
|
}
|
|
259
272
|
|
|
@@ -269,7 +282,7 @@ class Vector2 {
|
|
|
269
282
|
/**
|
|
270
283
|
*
|
|
271
284
|
* @param {Vector2} other
|
|
272
|
-
* @returns {
|
|
285
|
+
* @returns {this}
|
|
273
286
|
*/
|
|
274
287
|
copy(other) {
|
|
275
288
|
return this.set(other.x, other.y);
|
|
@@ -285,7 +298,7 @@ class Vector2 {
|
|
|
285
298
|
|
|
286
299
|
/**
|
|
287
300
|
*
|
|
288
|
-
* @returns {
|
|
301
|
+
* @returns {this}
|
|
289
302
|
*/
|
|
290
303
|
negate() {
|
|
291
304
|
return this.set(-this.x, -this.y);
|
|
@@ -295,7 +308,7 @@ class Vector2 {
|
|
|
295
308
|
*
|
|
296
309
|
* @param {number} x
|
|
297
310
|
* @param {number} y
|
|
298
|
-
* @returns {
|
|
311
|
+
* @returns {this}
|
|
299
312
|
*/
|
|
300
313
|
_add(x, y) {
|
|
301
314
|
return this.set(this.x + x, this.y + y);
|
|
@@ -304,7 +317,7 @@ class Vector2 {
|
|
|
304
317
|
/**
|
|
305
318
|
*
|
|
306
319
|
* @param {Vector2} other
|
|
307
|
-
* @returns {
|
|
320
|
+
* @returns {this}
|
|
308
321
|
*/
|
|
309
322
|
add(other) {
|
|
310
323
|
return this._add(other.x, other.y);
|
|
@@ -312,7 +325,8 @@ class Vector2 {
|
|
|
312
325
|
|
|
313
326
|
/**
|
|
314
327
|
*
|
|
315
|
-
* @param {
|
|
328
|
+
* @param {number} val
|
|
329
|
+
* @returns {this}
|
|
316
330
|
*/
|
|
317
331
|
addScalar(val) {
|
|
318
332
|
return this._add(val, val);
|
|
@@ -321,23 +335,25 @@ class Vector2 {
|
|
|
321
335
|
/**
|
|
322
336
|
*
|
|
323
337
|
* @param {number} val
|
|
338
|
+
* @returns {this}
|
|
324
339
|
*/
|
|
325
340
|
setScalar(val) {
|
|
326
|
-
this.set(val, val);
|
|
341
|
+
return this.set(val, val);
|
|
327
342
|
}
|
|
328
343
|
|
|
329
344
|
/**
|
|
330
345
|
*
|
|
331
346
|
* @param {number} val
|
|
347
|
+
* @returns {this}
|
|
332
348
|
*/
|
|
333
349
|
divideScalar(val) {
|
|
334
|
-
this.multiplyScalar(1 / val);
|
|
350
|
+
return this.multiplyScalar(1 / val);
|
|
335
351
|
}
|
|
336
352
|
|
|
337
353
|
/**
|
|
338
354
|
*
|
|
339
|
-
* @param {
|
|
340
|
-
* @returns {
|
|
355
|
+
* @param {number} val
|
|
356
|
+
* @returns {this}
|
|
341
357
|
*/
|
|
342
358
|
multiplyScalar(val) {
|
|
343
359
|
assert.isNumber(val, 'val');
|
|
@@ -409,10 +425,11 @@ class Vector2 {
|
|
|
409
425
|
|
|
410
426
|
/**
|
|
411
427
|
*
|
|
412
|
-
* @param {
|
|
413
|
-
* @param {
|
|
414
|
-
* @param {
|
|
415
|
-
* @param {
|
|
428
|
+
* @param {number} minX
|
|
429
|
+
* @param {number} minY
|
|
430
|
+
* @param {number} maxX
|
|
431
|
+
* @param {number} maxY
|
|
432
|
+
* @returns {this}
|
|
416
433
|
*/
|
|
417
434
|
clamp(minX, minY, maxX, maxY) {
|
|
418
435
|
const x = clamp(this.x, minX, maxX);
|
|
@@ -422,8 +439,9 @@ class Vector2 {
|
|
|
422
439
|
|
|
423
440
|
/**
|
|
424
441
|
*
|
|
425
|
-
* @param {
|
|
426
|
-
* @param {
|
|
442
|
+
* @param {number} lowX
|
|
443
|
+
* @param {number} lowY
|
|
444
|
+
* @returns {this}
|
|
427
445
|
*/
|
|
428
446
|
clampLow(lowX, lowY) {
|
|
429
447
|
const x = max2(this.x, lowX);
|
|
@@ -433,8 +451,9 @@ class Vector2 {
|
|
|
433
451
|
|
|
434
452
|
/**
|
|
435
453
|
*
|
|
436
|
-
* @param {
|
|
437
|
-
* @param {
|
|
454
|
+
* @param {number} highX
|
|
455
|
+
* @param {number} highY
|
|
456
|
+
* @returns {this}
|
|
438
457
|
*/
|
|
439
458
|
clampHigh(highX, highY) {
|
|
440
459
|
const x = min2(this.x, highX);
|
|
@@ -468,17 +487,19 @@ class Vector2 {
|
|
|
468
487
|
* @param {Vector2} a
|
|
469
488
|
* @param {Vector2} b
|
|
470
489
|
* @param {number} fraction
|
|
490
|
+
* @returns {this}
|
|
471
491
|
*/
|
|
472
492
|
lerpVectors(a, b, fraction) {
|
|
473
493
|
const x = lerp(a.x, b.x, fraction);
|
|
474
494
|
const y = lerp(a.y, b.y, fraction);
|
|
475
495
|
|
|
476
|
-
this.set(x, y);
|
|
496
|
+
return this.set(x, y);
|
|
477
497
|
}
|
|
478
498
|
|
|
479
499
|
/**
|
|
480
500
|
*
|
|
481
501
|
* @param {number[]} matrix3
|
|
502
|
+
* @returns {this}
|
|
482
503
|
*/
|
|
483
504
|
applyMatrix3(matrix3) {
|
|
484
505
|
const x = this.x;
|
|
@@ -487,7 +508,7 @@ class Vector2 {
|
|
|
487
508
|
const _x = matrix3[0] * x + matrix3[3] * y + matrix3[6];
|
|
488
509
|
const _y = matrix3[1] * x + matrix3[4] * y + matrix3[7];
|
|
489
510
|
|
|
490
|
-
this.set(_x, _y);
|
|
511
|
+
return this.set(_x, _y);
|
|
491
512
|
}
|
|
492
513
|
|
|
493
514
|
/**
|
|
@@ -530,18 +551,19 @@ class Vector2 {
|
|
|
530
551
|
|
|
531
552
|
/**
|
|
532
553
|
* Normalizes the vector, preserving its direction, but making magnitude equal to 1
|
|
554
|
+
* @returns {this}
|
|
533
555
|
*/
|
|
534
556
|
normalize() {
|
|
535
557
|
const l = this.length();
|
|
536
558
|
|
|
537
559
|
if (l === 0) {
|
|
538
560
|
//special case, can't normalize 0 length vector
|
|
539
|
-
return;
|
|
561
|
+
return this;
|
|
540
562
|
}
|
|
541
563
|
|
|
542
564
|
const m = 1 / l;
|
|
543
565
|
|
|
544
|
-
this.multiplyScalar(m);
|
|
566
|
+
return this.multiplyScalar(m);
|
|
545
567
|
}
|
|
546
568
|
|
|
547
569
|
|
|
@@ -559,6 +581,7 @@ class Vector2 {
|
|
|
559
581
|
/**
|
|
560
582
|
* Rotation is counter-clockwise
|
|
561
583
|
* @param {number} angle in radians
|
|
584
|
+
* @returns {this}
|
|
562
585
|
*/
|
|
563
586
|
rotate(angle) {
|
|
564
587
|
const sin = Math.sin(angle);
|
|
@@ -570,14 +593,14 @@ class Vector2 {
|
|
|
570
593
|
const x = _x * cos - _y * sin
|
|
571
594
|
const y = _x * sin + _y * cos;
|
|
572
595
|
|
|
573
|
-
this.set(x, y);
|
|
596
|
+
return this.set(x, y);
|
|
574
597
|
}
|
|
575
598
|
|
|
576
599
|
/**
|
|
577
600
|
*
|
|
578
601
|
* @param {function} processor
|
|
579
602
|
* @param {*} [thisArg]
|
|
580
|
-
* @returns {
|
|
603
|
+
* @returns {this}
|
|
581
604
|
*/
|
|
582
605
|
process(processor, thisArg) {
|
|
583
606
|
processor.call(thisArg, this.x, this.y);
|
|
@@ -597,7 +620,9 @@ class Vector2 {
|
|
|
597
620
|
* @returns {boolean}
|
|
598
621
|
*/
|
|
599
622
|
equals(other) {
|
|
600
|
-
return this.x === other.x
|
|
623
|
+
return this.x === other.x
|
|
624
|
+
&& this.y === other.y
|
|
625
|
+
;
|
|
601
626
|
}
|
|
602
627
|
|
|
603
628
|
/**
|
|
@@ -682,14 +707,6 @@ Vector2.zero = Object.freeze(new Vector2(0, 0));
|
|
|
682
707
|
*/
|
|
683
708
|
Vector2.one = Object.freeze(new Vector2(1, 1));
|
|
684
709
|
|
|
685
|
-
/**
|
|
686
|
-
* @readonly
|
|
687
|
-
* @type {boolean}
|
|
688
|
-
*/
|
|
689
|
-
Vector2.prototype.isVector2 = true;
|
|
690
|
-
|
|
691
|
-
Vector2._distance = v2_distance;
|
|
692
|
-
|
|
693
710
|
/**
|
|
694
711
|
* @deprecated use {@link Vector2#toArray} instead
|
|
695
712
|
*/
|
|
@@ -699,5 +716,18 @@ Vector2.prototype.writeToArray = Vector2.prototype.toArray;
|
|
|
699
716
|
* @deprecated use {@link Vector2#fromArray} instead
|
|
700
717
|
*/
|
|
701
718
|
Vector2.prototype.readFromArray = Vector2.prototype.fromArray;
|
|
719
|
+
Vector2._distance = v2_distance;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @readonly
|
|
723
|
+
* @type {boolean}
|
|
724
|
+
*/
|
|
725
|
+
Vector2.prototype.isVector2 = true;
|
|
726
|
+
/**
|
|
727
|
+
* @readonly
|
|
728
|
+
* @type {string}
|
|
729
|
+
*/
|
|
730
|
+
Vector2.typeName = "Vector2";
|
|
731
|
+
|
|
702
732
|
|
|
703
733
|
export default Vector2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector3.d.ts","sourceRoot":"","sources":["../../../../src/core/geom/Vector3.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Vector3.d.ts","sourceRoot":"","sources":["../../../../src/core/geom/Vector3.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH;IA68BI;;;;;OAKG;IACH,cAJW,OAAO,GAAC,OAAO,KACf,OAAO,GAAC,OAAO,GACb,MAAM,CAIlB;IAED;;;;;OAKG;IACH,mBAJW,OAAO,KACP,OAAO,GACL,MAAM,CAIlB;IAED;;;;;OAKG;IACH,wBAJW,MAAM,EAAE,WACR,MAAM,GACJ,OAAO,CAQnB;IAED;;;;OAIG;IACH,yBAHW,MAAM,GACJ,OAAO,CAInB;IAr/BD;;;;;;OAMG;IACH,gBALW,MAAM,MACN,MAAM,MACN,MAAM,EAuChB;IA1BG;;;;OAIG;IACH,YAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,YAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,YAFU,MAAM,CAEN;IAEV;;;OAGG;IACH,oBAFU,MAAM,CAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,CAAC,CAE9B;IAGjC;;;;OAIG;IACH,qBAHW,MAAM,EAAE,GAAC,YAAY,WACrB,MAAM,QAQhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,EAAE,GAAC,YAAY,WACrB,MAAM,4CAQhB;IAED;;;;;;OAMG;IACH,OALW,MAAM,KACN,MAAM,KACN,MAAM,GACJ,IAAI,CA6BhB;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,QAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,QAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;OAIG;IACH,QAHW,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,SAJW,MAAM,KACN,MAAM,GACJ,IAAI,CAIhB;IAED;;;;;OAKG;IACH,SAJW,MAA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