@galacean/engine-xr-webxr 1.4.0-alpha.3 → 1.4.0-beta.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/browser.js +54 -54
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +54 -54
- package/dist/module.js +54 -54
- package/package.json +4 -4
package/dist/module.js
CHANGED
|
@@ -240,7 +240,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
240
240
|
this._x = x;
|
|
241
241
|
this._y = y;
|
|
242
242
|
this._z = z;
|
|
243
|
-
this._onValueChanged
|
|
243
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
244
244
|
return this;
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
@@ -251,7 +251,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
251
251
|
this._x += right._x;
|
|
252
252
|
this._y += right._y;
|
|
253
253
|
this._z += right._z;
|
|
254
|
-
this._onValueChanged
|
|
254
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
255
255
|
return this;
|
|
256
256
|
};
|
|
257
257
|
/**
|
|
@@ -262,7 +262,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
262
262
|
this._x -= right._x;
|
|
263
263
|
this._y -= right._y;
|
|
264
264
|
this._z -= right._z;
|
|
265
|
-
this._onValueChanged
|
|
265
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
266
266
|
return this;
|
|
267
267
|
};
|
|
268
268
|
/**
|
|
@@ -273,7 +273,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
273
273
|
this._x *= right._x;
|
|
274
274
|
this._y *= right._y;
|
|
275
275
|
this._z *= right._z;
|
|
276
|
-
this._onValueChanged
|
|
276
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
277
277
|
return this;
|
|
278
278
|
};
|
|
279
279
|
/**
|
|
@@ -284,7 +284,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
284
284
|
this._x /= right._x;
|
|
285
285
|
this._y /= right._y;
|
|
286
286
|
this._z /= right._z;
|
|
287
|
-
this._onValueChanged
|
|
287
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
288
288
|
return this;
|
|
289
289
|
};
|
|
290
290
|
/**
|
|
@@ -308,7 +308,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
308
308
|
this._x = -this._x;
|
|
309
309
|
this._y = -this._y;
|
|
310
310
|
this._z = -this._z;
|
|
311
|
-
this._onValueChanged
|
|
311
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
312
312
|
return this;
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
@@ -326,7 +326,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
326
326
|
this._x *= s;
|
|
327
327
|
this._y *= s;
|
|
328
328
|
this._z *= s;
|
|
329
|
-
this._onValueChanged
|
|
329
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
330
330
|
return this;
|
|
331
331
|
};
|
|
332
332
|
/**
|
|
@@ -387,7 +387,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
387
387
|
this._x = source.x;
|
|
388
388
|
this._y = source.y;
|
|
389
389
|
this._z = source.z;
|
|
390
|
-
this._onValueChanged
|
|
390
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
391
391
|
return this;
|
|
392
392
|
};
|
|
393
393
|
/**
|
|
@@ -410,7 +410,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
410
410
|
this._x = array[offset];
|
|
411
411
|
this._y = array[offset + 1];
|
|
412
412
|
this._z = array[offset + 2];
|
|
413
|
-
this._onValueChanged
|
|
413
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
414
414
|
return this;
|
|
415
415
|
};
|
|
416
416
|
/**
|
|
@@ -442,7 +442,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
442
442
|
out._x = left._x + right._x;
|
|
443
443
|
out._y = left._y + right._y;
|
|
444
444
|
out._z = left._z + right._z;
|
|
445
|
-
out._onValueChanged
|
|
445
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
446
446
|
};
|
|
447
447
|
/**
|
|
448
448
|
* Determines the difference between two vectors.
|
|
@@ -453,7 +453,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
453
453
|
out._x = left._x - right._x;
|
|
454
454
|
out._y = left._y - right._y;
|
|
455
455
|
out._z = left._z - right._z;
|
|
456
|
-
out._onValueChanged
|
|
456
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
457
457
|
};
|
|
458
458
|
/**
|
|
459
459
|
* Determines the product of two vectors.
|
|
@@ -464,7 +464,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
464
464
|
out._x = left._x * right._x;
|
|
465
465
|
out._y = left._y * right._y;
|
|
466
466
|
out._z = left._z * right._z;
|
|
467
|
-
out._onValueChanged
|
|
467
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
468
468
|
};
|
|
469
469
|
/**
|
|
470
470
|
* Determines the divisor of two vectors.
|
|
@@ -475,7 +475,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
475
475
|
out._x = left._x / right._x;
|
|
476
476
|
out._y = left._y / right._y;
|
|
477
477
|
out._z = left._z / right._z;
|
|
478
|
-
out._onValueChanged
|
|
478
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
479
479
|
};
|
|
480
480
|
/**
|
|
481
481
|
* Determines the dot product of two vectors.
|
|
@@ -540,7 +540,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
540
540
|
out._x = _x + (end._x - _x) * t;
|
|
541
541
|
out._y = _y + (end._y - _y) * t;
|
|
542
542
|
out._z = _z + (end._z - _z) * t;
|
|
543
|
-
out._onValueChanged
|
|
543
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
544
544
|
};
|
|
545
545
|
/**
|
|
546
546
|
* Calculate a vector containing the largest components of the specified vectors.
|
|
@@ -551,7 +551,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
551
551
|
out._x = Math.max(left._x, right._x);
|
|
552
552
|
out._y = Math.max(left._y, right._y);
|
|
553
553
|
out._z = Math.max(left._z, right._z);
|
|
554
|
-
out._onValueChanged
|
|
554
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
555
555
|
};
|
|
556
556
|
/**
|
|
557
557
|
* Calculate a vector containing the smallest components of the specified vectors.
|
|
@@ -562,7 +562,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
562
562
|
out._x = Math.min(left._x, right._x);
|
|
563
563
|
out._y = Math.min(left._y, right._y);
|
|
564
564
|
out._z = Math.min(left._z, right._z);
|
|
565
|
-
out._onValueChanged
|
|
565
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
566
566
|
};
|
|
567
567
|
/**
|
|
568
568
|
* Reverses the direction of a given vector.
|
|
@@ -572,7 +572,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
572
572
|
out._x = -a._x;
|
|
573
573
|
out._y = -a._y;
|
|
574
574
|
out._z = -a._z;
|
|
575
|
-
out._onValueChanged
|
|
575
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
576
576
|
};
|
|
577
577
|
/**
|
|
578
578
|
* Converts the vector into a unit vector.
|
|
@@ -595,7 +595,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
595
595
|
out._x = a._x * s;
|
|
596
596
|
out._y = a._y * s;
|
|
597
597
|
out._z = a._z * s;
|
|
598
|
-
out._onValueChanged
|
|
598
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
599
599
|
};
|
|
600
600
|
/**
|
|
601
601
|
* Performs a normal transformation using the given 4x4 matrix.
|
|
@@ -614,7 +614,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
614
614
|
out._x = _x * e[0] + _y * e[4] + _z * e[8];
|
|
615
615
|
out._y = _x * e[1] + _y * e[5] + _z * e[9];
|
|
616
616
|
out._z = _x * e[2] + _y * e[6] + _z * e[10];
|
|
617
|
-
out._onValueChanged
|
|
617
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
618
618
|
};
|
|
619
619
|
/**
|
|
620
620
|
* Performs a transformation using the given 4x4 matrix.
|
|
@@ -627,7 +627,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
627
627
|
out._x = _x * e[0] + _y * e[4] + _z * e[8] + e[12];
|
|
628
628
|
out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
|
|
629
629
|
out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
|
|
630
|
-
out._onValueChanged
|
|
630
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
631
631
|
};
|
|
632
632
|
/**
|
|
633
633
|
* Performs a transformation from vector3 to vector4 using the given 4x4 matrix.
|
|
@@ -641,7 +641,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
641
641
|
out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
|
|
642
642
|
out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
|
|
643
643
|
out._w = _x * e[3] + _y * e[7] + _z * e[11] + e[15];
|
|
644
|
-
out._onValueChanged
|
|
644
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
647
|
* Performs a coordinate transformation using the given 4x4 matrix.
|
|
@@ -663,7 +663,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
663
663
|
out._x = (_x * e[0] + _y * e[4] + _z * e[8] + e[12]) * w;
|
|
664
664
|
out._y = (_x * e[1] + _y * e[5] + _z * e[9] + e[13]) * w;
|
|
665
665
|
out._z = (_x * e[2] + _y * e[6] + _z * e[10] + e[14]) * w;
|
|
666
|
-
out._onValueChanged
|
|
666
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
667
667
|
};
|
|
668
668
|
/**
|
|
669
669
|
* Performs a transformation using the given quaternion.
|
|
@@ -682,7 +682,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
682
682
|
out._x = ix * qw - iw * qx - iy * qz + iz * qy;
|
|
683
683
|
out._y = iy * qw - iw * qy - iz * qx + ix * qz;
|
|
684
684
|
out._z = iz * qw - iw * qz - ix * qy + iy * qx;
|
|
685
|
-
out._onValueChanged
|
|
685
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
686
686
|
};
|
|
687
687
|
_create_class(Vector3, [
|
|
688
688
|
{
|
|
@@ -694,7 +694,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
694
694
|
},
|
|
695
695
|
set: function set(value) {
|
|
696
696
|
this._x = value;
|
|
697
|
-
this._onValueChanged
|
|
697
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
698
698
|
}
|
|
699
699
|
},
|
|
700
700
|
{
|
|
@@ -706,7 +706,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
706
706
|
},
|
|
707
707
|
set: function set(value) {
|
|
708
708
|
this._y = value;
|
|
709
|
-
this._onValueChanged
|
|
709
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
710
710
|
}
|
|
711
711
|
},
|
|
712
712
|
{
|
|
@@ -718,7 +718,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
718
718
|
},
|
|
719
719
|
set: function set(value) {
|
|
720
720
|
this._z = value;
|
|
721
|
-
this._onValueChanged
|
|
721
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
]);
|
|
@@ -1301,7 +1301,7 @@ new Vector3();
|
|
|
1301
1301
|
this._y = y;
|
|
1302
1302
|
this._z = z;
|
|
1303
1303
|
this._w = w;
|
|
1304
|
-
this._onValueChanged
|
|
1304
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1305
1305
|
return this;
|
|
1306
1306
|
};
|
|
1307
1307
|
/**
|
|
@@ -1311,7 +1311,7 @@ new Vector3();
|
|
|
1311
1311
|
this._x *= -1;
|
|
1312
1312
|
this._y *= -1;
|
|
1313
1313
|
this._z *= -1;
|
|
1314
|
-
this._onValueChanged
|
|
1314
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1315
1315
|
return this;
|
|
1316
1316
|
};
|
|
1317
1317
|
/**
|
|
@@ -1342,7 +1342,7 @@ new Vector3();
|
|
|
1342
1342
|
this._y = 0;
|
|
1343
1343
|
this._z = 0;
|
|
1344
1344
|
this._w = 1;
|
|
1345
|
-
this._onValueChanged
|
|
1345
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1346
1346
|
return this;
|
|
1347
1347
|
};
|
|
1348
1348
|
/**
|
|
@@ -1375,7 +1375,7 @@ new Vector3();
|
|
|
1375
1375
|
var t = out._x;
|
|
1376
1376
|
out._x = out._y;
|
|
1377
1377
|
out._y = t;
|
|
1378
|
-
out._onValueChanged
|
|
1378
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1379
1379
|
return out;
|
|
1380
1380
|
};
|
|
1381
1381
|
/**
|
|
@@ -1384,7 +1384,7 @@ new Vector3();
|
|
|
1384
1384
|
* @returns Euler x->yaw y->pitch z->roll
|
|
1385
1385
|
*/ _proto.toYawPitchRoll = function toYawPitchRoll(out) {
|
|
1386
1386
|
this._toYawPitchRoll(out);
|
|
1387
|
-
out._onValueChanged
|
|
1387
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1388
1388
|
return out;
|
|
1389
1389
|
};
|
|
1390
1390
|
/**
|
|
@@ -1476,7 +1476,7 @@ new Vector3();
|
|
|
1476
1476
|
this._y = source.y;
|
|
1477
1477
|
this._z = source.z;
|
|
1478
1478
|
this._w = source.w;
|
|
1479
|
-
this._onValueChanged
|
|
1479
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1480
1480
|
return this;
|
|
1481
1481
|
};
|
|
1482
1482
|
/**
|
|
@@ -1501,7 +1501,7 @@ new Vector3();
|
|
|
1501
1501
|
this._y = array[offset + 1];
|
|
1502
1502
|
this._z = array[offset + 2];
|
|
1503
1503
|
this._w = array[offset + 3];
|
|
1504
|
-
this._onValueChanged
|
|
1504
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1505
1505
|
return this;
|
|
1506
1506
|
};
|
|
1507
1507
|
/**
|
|
@@ -1559,7 +1559,7 @@ new Vector3();
|
|
|
1559
1559
|
out._y = left._y + right._y;
|
|
1560
1560
|
out._z = left._z + right._z;
|
|
1561
1561
|
out._w = left._w + right._w;
|
|
1562
|
-
out._onValueChanged
|
|
1562
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1563
1563
|
};
|
|
1564
1564
|
/**
|
|
1565
1565
|
* Determines the product of two quaternions.
|
|
@@ -1573,7 +1573,7 @@ new Vector3();
|
|
|
1573
1573
|
out._y = ay * bw + aw * by + az * bx - ax * bz;
|
|
1574
1574
|
out._z = az * bw + aw * bz + ax * by - ay * bx;
|
|
1575
1575
|
out._w = aw * bw - ax * bx - ay * by - az * bz;
|
|
1576
|
-
out._onValueChanged
|
|
1576
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1577
1577
|
};
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Calculate quaternion that contains conjugated version of the specified quaternion.
|
|
@@ -1584,7 +1584,7 @@ new Vector3();
|
|
|
1584
1584
|
out._y = -a._y;
|
|
1585
1585
|
out._z = -a._z;
|
|
1586
1586
|
out._w = a._w;
|
|
1587
|
-
out._onValueChanged
|
|
1587
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1588
1588
|
};
|
|
1589
1589
|
/**
|
|
1590
1590
|
* Determines the dot product of two quaternions.
|
|
@@ -1616,7 +1616,7 @@ new Vector3();
|
|
|
1616
1616
|
out._y = normalAxis._y * s;
|
|
1617
1617
|
out._z = normalAxis._z * s;
|
|
1618
1618
|
out._w = Math.cos(rad);
|
|
1619
|
-
out._onValueChanged
|
|
1619
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1620
1620
|
};
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Calculate a quaternion rotates around x, y, z axis (pitch/yaw/roll).
|
|
@@ -1649,7 +1649,7 @@ new Vector3();
|
|
|
1649
1649
|
out._y = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;
|
|
1650
1650
|
out._z = cosYawPitch * sinRoll - sinYawPitch * cosRoll;
|
|
1651
1651
|
out._w = cosYawPitch * cosRoll + sinYawPitch * sinRoll;
|
|
1652
|
-
out._onValueChanged
|
|
1652
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1653
1653
|
};
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Calculate a quaternion from the specified 3x3 matrix.
|
|
@@ -1691,7 +1691,7 @@ new Vector3();
|
|
|
1691
1691
|
out._z = 0.5 * sqrt;
|
|
1692
1692
|
out._w = (m12 - m21) * half;
|
|
1693
1693
|
}
|
|
1694
|
-
out._onValueChanged
|
|
1694
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1695
1695
|
};
|
|
1696
1696
|
/**
|
|
1697
1697
|
* Calculate the inverse of the specified quaternion.
|
|
@@ -1706,7 +1706,7 @@ new Vector3();
|
|
|
1706
1706
|
out._y = -y * invDot;
|
|
1707
1707
|
out._z = -z * invDot;
|
|
1708
1708
|
out._w = w * invDot;
|
|
1709
|
-
out._onValueChanged
|
|
1709
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1710
1710
|
}
|
|
1711
1711
|
};
|
|
1712
1712
|
/**
|
|
@@ -1753,7 +1753,7 @@ new Vector3();
|
|
|
1753
1753
|
out.y = inverse * start.y + opposite * end.y;
|
|
1754
1754
|
out.z = inverse * start.z + opposite * end.z;
|
|
1755
1755
|
out.w = inverse * start.w + opposite * end.w;
|
|
1756
|
-
out._onValueChanged
|
|
1756
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1757
1757
|
};
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Scales the specified quaternion magnitude to unit length.
|
|
@@ -1768,7 +1768,7 @@ new Vector3();
|
|
|
1768
1768
|
out._y = _y * len;
|
|
1769
1769
|
out._z = _z * len;
|
|
1770
1770
|
out._w = _w * len;
|
|
1771
|
-
out._onValueChanged
|
|
1771
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1772
1772
|
}
|
|
1773
1773
|
};
|
|
1774
1774
|
/**
|
|
@@ -1783,7 +1783,7 @@ new Vector3();
|
|
|
1783
1783
|
out._y = 0;
|
|
1784
1784
|
out._z = 0;
|
|
1785
1785
|
out._w = c;
|
|
1786
|
-
out._onValueChanged
|
|
1786
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1787
1787
|
};
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Calculate a quaternion rotate around Y axis.
|
|
@@ -1797,7 +1797,7 @@ new Vector3();
|
|
|
1797
1797
|
out._y = s;
|
|
1798
1798
|
out._z = 0;
|
|
1799
1799
|
out._w = c;
|
|
1800
|
-
out._onValueChanged
|
|
1800
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1801
1801
|
};
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Calculate a quaternion rotate around Z axis.
|
|
@@ -1811,7 +1811,7 @@ new Vector3();
|
|
|
1811
1811
|
out._y = 0;
|
|
1812
1812
|
out._z = s;
|
|
1813
1813
|
out._w = c;
|
|
1814
|
-
out._onValueChanged
|
|
1814
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1815
1815
|
};
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Calculate a quaternion that the specified quaternion rotate around X axis.
|
|
@@ -1827,7 +1827,7 @@ new Vector3();
|
|
|
1827
1827
|
out._y = _y * bw + _z * bx;
|
|
1828
1828
|
out._z = _z * bw - _y * bx;
|
|
1829
1829
|
out._w = _w * bw - _x * bx;
|
|
1830
|
-
out._onValueChanged
|
|
1830
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1831
1831
|
};
|
|
1832
1832
|
/**
|
|
1833
1833
|
* Calculate a quaternion that the specified quaternion rotate around Y axis.
|
|
@@ -1843,7 +1843,7 @@ new Vector3();
|
|
|
1843
1843
|
out._y = _y * bw + _w * by;
|
|
1844
1844
|
out._z = _z * bw + _x * by;
|
|
1845
1845
|
out._w = _w * bw - _y * by;
|
|
1846
|
-
out._onValueChanged
|
|
1846
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1847
1847
|
};
|
|
1848
1848
|
/**
|
|
1849
1849
|
* Calculate a quaternion that the specified quaternion rotate around Z axis.
|
|
@@ -1859,7 +1859,7 @@ new Vector3();
|
|
|
1859
1859
|
out._y = _y * bw - _x * bz;
|
|
1860
1860
|
out._z = _z * bw + _w * bz;
|
|
1861
1861
|
out._w = _w * bw - _z * bz;
|
|
1862
|
-
out._onValueChanged
|
|
1862
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1863
1863
|
};
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Scale a quaternion by a given number.
|
|
@@ -1871,7 +1871,7 @@ new Vector3();
|
|
|
1871
1871
|
out._y = a._y * s;
|
|
1872
1872
|
out._z = a._z * s;
|
|
1873
1873
|
out._w = a._w * s;
|
|
1874
|
-
out._onValueChanged
|
|
1874
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1875
1875
|
};
|
|
1876
1876
|
_create_class(Quaternion, [
|
|
1877
1877
|
{
|
|
@@ -1883,7 +1883,7 @@ new Vector3();
|
|
|
1883
1883
|
},
|
|
1884
1884
|
set: function set(value) {
|
|
1885
1885
|
this._x = value;
|
|
1886
|
-
this._onValueChanged
|
|
1886
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1887
1887
|
}
|
|
1888
1888
|
},
|
|
1889
1889
|
{
|
|
@@ -1895,7 +1895,7 @@ new Vector3();
|
|
|
1895
1895
|
},
|
|
1896
1896
|
set: function set(value) {
|
|
1897
1897
|
this._y = value;
|
|
1898
|
-
this._onValueChanged
|
|
1898
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1899
1899
|
}
|
|
1900
1900
|
},
|
|
1901
1901
|
{
|
|
@@ -1907,7 +1907,7 @@ new Vector3();
|
|
|
1907
1907
|
},
|
|
1908
1908
|
set: function set(value) {
|
|
1909
1909
|
this._z = value;
|
|
1910
|
-
this._onValueChanged
|
|
1910
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1911
1911
|
}
|
|
1912
1912
|
},
|
|
1913
1913
|
{
|
|
@@ -1927,7 +1927,7 @@ new Vector3();
|
|
|
1927
1927
|
},
|
|
1928
1928
|
set: function set(value) {
|
|
1929
1929
|
this._w = value;
|
|
1930
|
-
this._onValueChanged
|
|
1930
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
]);
|
|
@@ -2132,7 +2132,7 @@ new Vector3();
|
|
|
2132
2132
|
out._y = (e[6] + e[9]) / s3;
|
|
2133
2133
|
out._z = 0.25 * s3;
|
|
2134
2134
|
}
|
|
2135
|
-
out._onValueChanged
|
|
2135
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
2136
2136
|
return out;
|
|
2137
2137
|
};
|
|
2138
2138
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-xr-webxr",
|
|
3
|
-
"version": "1.4.0-
|
|
3
|
+
"version": "1.4.0-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"types/**/*"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@galacean/engine-xr": "1.4.0-
|
|
29
|
+
"@galacean/engine-xr": "1.4.0-beta.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@galacean/engine-
|
|
33
|
-
"@galacean/engine-
|
|
32
|
+
"@galacean/engine-math": "1.4.0-beta.0",
|
|
33
|
+
"@galacean/engine-design": "1.4.0-beta.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {},
|
|
36
36
|
"scripts": {
|