@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/main.js
CHANGED
|
@@ -244,7 +244,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
244
244
|
this._x = x;
|
|
245
245
|
this._y = y;
|
|
246
246
|
this._z = z;
|
|
247
|
-
this._onValueChanged
|
|
247
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
248
248
|
return this;
|
|
249
249
|
};
|
|
250
250
|
/**
|
|
@@ -255,7 +255,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
255
255
|
this._x += right._x;
|
|
256
256
|
this._y += right._y;
|
|
257
257
|
this._z += right._z;
|
|
258
|
-
this._onValueChanged
|
|
258
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
259
259
|
return this;
|
|
260
260
|
};
|
|
261
261
|
/**
|
|
@@ -266,7 +266,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
266
266
|
this._x -= right._x;
|
|
267
267
|
this._y -= right._y;
|
|
268
268
|
this._z -= right._z;
|
|
269
|
-
this._onValueChanged
|
|
269
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
270
270
|
return this;
|
|
271
271
|
};
|
|
272
272
|
/**
|
|
@@ -277,7 +277,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
277
277
|
this._x *= right._x;
|
|
278
278
|
this._y *= right._y;
|
|
279
279
|
this._z *= right._z;
|
|
280
|
-
this._onValueChanged
|
|
280
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
281
281
|
return this;
|
|
282
282
|
};
|
|
283
283
|
/**
|
|
@@ -288,7 +288,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
288
288
|
this._x /= right._x;
|
|
289
289
|
this._y /= right._y;
|
|
290
290
|
this._z /= right._z;
|
|
291
|
-
this._onValueChanged
|
|
291
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
292
292
|
return this;
|
|
293
293
|
};
|
|
294
294
|
/**
|
|
@@ -312,7 +312,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
312
312
|
this._x = -this._x;
|
|
313
313
|
this._y = -this._y;
|
|
314
314
|
this._z = -this._z;
|
|
315
|
-
this._onValueChanged
|
|
315
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
316
316
|
return this;
|
|
317
317
|
};
|
|
318
318
|
/**
|
|
@@ -330,7 +330,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
330
330
|
this._x *= s;
|
|
331
331
|
this._y *= s;
|
|
332
332
|
this._z *= s;
|
|
333
|
-
this._onValueChanged
|
|
333
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
334
334
|
return this;
|
|
335
335
|
};
|
|
336
336
|
/**
|
|
@@ -391,7 +391,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
391
391
|
this._x = source.x;
|
|
392
392
|
this._y = source.y;
|
|
393
393
|
this._z = source.z;
|
|
394
|
-
this._onValueChanged
|
|
394
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
395
395
|
return this;
|
|
396
396
|
};
|
|
397
397
|
/**
|
|
@@ -414,7 +414,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
414
414
|
this._x = array[offset];
|
|
415
415
|
this._y = array[offset + 1];
|
|
416
416
|
this._z = array[offset + 2];
|
|
417
|
-
this._onValueChanged
|
|
417
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
418
418
|
return this;
|
|
419
419
|
};
|
|
420
420
|
/**
|
|
@@ -446,7 +446,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
446
446
|
out._x = left._x + right._x;
|
|
447
447
|
out._y = left._y + right._y;
|
|
448
448
|
out._z = left._z + right._z;
|
|
449
|
-
out._onValueChanged
|
|
449
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
450
450
|
};
|
|
451
451
|
/**
|
|
452
452
|
* Determines the difference between two vectors.
|
|
@@ -457,7 +457,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
457
457
|
out._x = left._x - right._x;
|
|
458
458
|
out._y = left._y - right._y;
|
|
459
459
|
out._z = left._z - right._z;
|
|
460
|
-
out._onValueChanged
|
|
460
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
461
461
|
};
|
|
462
462
|
/**
|
|
463
463
|
* Determines the product of two vectors.
|
|
@@ -468,7 +468,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
468
468
|
out._x = left._x * right._x;
|
|
469
469
|
out._y = left._y * right._y;
|
|
470
470
|
out._z = left._z * right._z;
|
|
471
|
-
out._onValueChanged
|
|
471
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
472
472
|
};
|
|
473
473
|
/**
|
|
474
474
|
* Determines the divisor of two vectors.
|
|
@@ -479,7 +479,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
479
479
|
out._x = left._x / right._x;
|
|
480
480
|
out._y = left._y / right._y;
|
|
481
481
|
out._z = left._z / right._z;
|
|
482
|
-
out._onValueChanged
|
|
482
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
483
483
|
};
|
|
484
484
|
/**
|
|
485
485
|
* Determines the dot product of two vectors.
|
|
@@ -544,7 +544,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
544
544
|
out._x = _x + (end._x - _x) * t;
|
|
545
545
|
out._y = _y + (end._y - _y) * t;
|
|
546
546
|
out._z = _z + (end._z - _z) * t;
|
|
547
|
-
out._onValueChanged
|
|
547
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
548
548
|
};
|
|
549
549
|
/**
|
|
550
550
|
* Calculate a vector containing the largest components of the specified vectors.
|
|
@@ -555,7 +555,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
555
555
|
out._x = Math.max(left._x, right._x);
|
|
556
556
|
out._y = Math.max(left._y, right._y);
|
|
557
557
|
out._z = Math.max(left._z, right._z);
|
|
558
|
-
out._onValueChanged
|
|
558
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
559
559
|
};
|
|
560
560
|
/**
|
|
561
561
|
* Calculate a vector containing the smallest components of the specified vectors.
|
|
@@ -566,7 +566,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
566
566
|
out._x = Math.min(left._x, right._x);
|
|
567
567
|
out._y = Math.min(left._y, right._y);
|
|
568
568
|
out._z = Math.min(left._z, right._z);
|
|
569
|
-
out._onValueChanged
|
|
569
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
570
570
|
};
|
|
571
571
|
/**
|
|
572
572
|
* Reverses the direction of a given vector.
|
|
@@ -576,7 +576,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
576
576
|
out._x = -a._x;
|
|
577
577
|
out._y = -a._y;
|
|
578
578
|
out._z = -a._z;
|
|
579
|
-
out._onValueChanged
|
|
579
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
580
580
|
};
|
|
581
581
|
/**
|
|
582
582
|
* Converts the vector into a unit vector.
|
|
@@ -599,7 +599,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
599
599
|
out._x = a._x * s;
|
|
600
600
|
out._y = a._y * s;
|
|
601
601
|
out._z = a._z * s;
|
|
602
|
-
out._onValueChanged
|
|
602
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
603
603
|
};
|
|
604
604
|
/**
|
|
605
605
|
* Performs a normal transformation using the given 4x4 matrix.
|
|
@@ -618,7 +618,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
618
618
|
out._x = _x * e[0] + _y * e[4] + _z * e[8];
|
|
619
619
|
out._y = _x * e[1] + _y * e[5] + _z * e[9];
|
|
620
620
|
out._z = _x * e[2] + _y * e[6] + _z * e[10];
|
|
621
|
-
out._onValueChanged
|
|
621
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
622
622
|
};
|
|
623
623
|
/**
|
|
624
624
|
* Performs a transformation using the given 4x4 matrix.
|
|
@@ -631,7 +631,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
631
631
|
out._x = _x * e[0] + _y * e[4] + _z * e[8] + e[12];
|
|
632
632
|
out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
|
|
633
633
|
out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
|
|
634
|
-
out._onValueChanged
|
|
634
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
635
635
|
};
|
|
636
636
|
/**
|
|
637
637
|
* Performs a transformation from vector3 to vector4 using the given 4x4 matrix.
|
|
@@ -645,7 +645,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
645
645
|
out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
|
|
646
646
|
out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
|
|
647
647
|
out._w = _x * e[3] + _y * e[7] + _z * e[11] + e[15];
|
|
648
|
-
out._onValueChanged
|
|
648
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
649
649
|
};
|
|
650
650
|
/**
|
|
651
651
|
* Performs a coordinate transformation using the given 4x4 matrix.
|
|
@@ -667,7 +667,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
667
667
|
out._x = (_x * e[0] + _y * e[4] + _z * e[8] + e[12]) * w;
|
|
668
668
|
out._y = (_x * e[1] + _y * e[5] + _z * e[9] + e[13]) * w;
|
|
669
669
|
out._z = (_x * e[2] + _y * e[6] + _z * e[10] + e[14]) * w;
|
|
670
|
-
out._onValueChanged
|
|
670
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
671
671
|
};
|
|
672
672
|
/**
|
|
673
673
|
* Performs a transformation using the given quaternion.
|
|
@@ -686,7 +686,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
686
686
|
out._x = ix * qw - iw * qx - iy * qz + iz * qy;
|
|
687
687
|
out._y = iy * qw - iw * qy - iz * qx + ix * qz;
|
|
688
688
|
out._z = iz * qw - iw * qz - ix * qy + iy * qx;
|
|
689
|
-
out._onValueChanged
|
|
689
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
690
690
|
};
|
|
691
691
|
_create_class(Vector3, [
|
|
692
692
|
{
|
|
@@ -698,7 +698,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
698
698
|
},
|
|
699
699
|
set: function set(value) {
|
|
700
700
|
this._x = value;
|
|
701
|
-
this._onValueChanged
|
|
701
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
704
|
{
|
|
@@ -710,7 +710,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
710
710
|
},
|
|
711
711
|
set: function set(value) {
|
|
712
712
|
this._y = value;
|
|
713
|
-
this._onValueChanged
|
|
713
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
{
|
|
@@ -722,7 +722,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
722
722
|
},
|
|
723
723
|
set: function set(value) {
|
|
724
724
|
this._z = value;
|
|
725
|
-
this._onValueChanged
|
|
725
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
]);
|
|
@@ -1305,7 +1305,7 @@ new Vector3();
|
|
|
1305
1305
|
this._y = y;
|
|
1306
1306
|
this._z = z;
|
|
1307
1307
|
this._w = w;
|
|
1308
|
-
this._onValueChanged
|
|
1308
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1309
1309
|
return this;
|
|
1310
1310
|
};
|
|
1311
1311
|
/**
|
|
@@ -1315,7 +1315,7 @@ new Vector3();
|
|
|
1315
1315
|
this._x *= -1;
|
|
1316
1316
|
this._y *= -1;
|
|
1317
1317
|
this._z *= -1;
|
|
1318
|
-
this._onValueChanged
|
|
1318
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1319
1319
|
return this;
|
|
1320
1320
|
};
|
|
1321
1321
|
/**
|
|
@@ -1346,7 +1346,7 @@ new Vector3();
|
|
|
1346
1346
|
this._y = 0;
|
|
1347
1347
|
this._z = 0;
|
|
1348
1348
|
this._w = 1;
|
|
1349
|
-
this._onValueChanged
|
|
1349
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1350
1350
|
return this;
|
|
1351
1351
|
};
|
|
1352
1352
|
/**
|
|
@@ -1379,7 +1379,7 @@ new Vector3();
|
|
|
1379
1379
|
var t = out._x;
|
|
1380
1380
|
out._x = out._y;
|
|
1381
1381
|
out._y = t;
|
|
1382
|
-
out._onValueChanged
|
|
1382
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1383
1383
|
return out;
|
|
1384
1384
|
};
|
|
1385
1385
|
/**
|
|
@@ -1388,7 +1388,7 @@ new Vector3();
|
|
|
1388
1388
|
* @returns Euler x->yaw y->pitch z->roll
|
|
1389
1389
|
*/ _proto.toYawPitchRoll = function toYawPitchRoll(out) {
|
|
1390
1390
|
this._toYawPitchRoll(out);
|
|
1391
|
-
out._onValueChanged
|
|
1391
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1392
1392
|
return out;
|
|
1393
1393
|
};
|
|
1394
1394
|
/**
|
|
@@ -1480,7 +1480,7 @@ new Vector3();
|
|
|
1480
1480
|
this._y = source.y;
|
|
1481
1481
|
this._z = source.z;
|
|
1482
1482
|
this._w = source.w;
|
|
1483
|
-
this._onValueChanged
|
|
1483
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1484
1484
|
return this;
|
|
1485
1485
|
};
|
|
1486
1486
|
/**
|
|
@@ -1505,7 +1505,7 @@ new Vector3();
|
|
|
1505
1505
|
this._y = array[offset + 1];
|
|
1506
1506
|
this._z = array[offset + 2];
|
|
1507
1507
|
this._w = array[offset + 3];
|
|
1508
|
-
this._onValueChanged
|
|
1508
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1509
1509
|
return this;
|
|
1510
1510
|
};
|
|
1511
1511
|
/**
|
|
@@ -1563,7 +1563,7 @@ new Vector3();
|
|
|
1563
1563
|
out._y = left._y + right._y;
|
|
1564
1564
|
out._z = left._z + right._z;
|
|
1565
1565
|
out._w = left._w + right._w;
|
|
1566
|
-
out._onValueChanged
|
|
1566
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1567
1567
|
};
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Determines the product of two quaternions.
|
|
@@ -1577,7 +1577,7 @@ new Vector3();
|
|
|
1577
1577
|
out._y = ay * bw + aw * by + az * bx - ax * bz;
|
|
1578
1578
|
out._z = az * bw + aw * bz + ax * by - ay * bx;
|
|
1579
1579
|
out._w = aw * bw - ax * bx - ay * by - az * bz;
|
|
1580
|
-
out._onValueChanged
|
|
1580
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1581
1581
|
};
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Calculate quaternion that contains conjugated version of the specified quaternion.
|
|
@@ -1588,7 +1588,7 @@ new Vector3();
|
|
|
1588
1588
|
out._y = -a._y;
|
|
1589
1589
|
out._z = -a._z;
|
|
1590
1590
|
out._w = a._w;
|
|
1591
|
-
out._onValueChanged
|
|
1591
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1592
1592
|
};
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Determines the dot product of two quaternions.
|
|
@@ -1620,7 +1620,7 @@ new Vector3();
|
|
|
1620
1620
|
out._y = normalAxis._y * s;
|
|
1621
1621
|
out._z = normalAxis._z * s;
|
|
1622
1622
|
out._w = Math.cos(rad);
|
|
1623
|
-
out._onValueChanged
|
|
1623
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1624
1624
|
};
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Calculate a quaternion rotates around x, y, z axis (pitch/yaw/roll).
|
|
@@ -1653,7 +1653,7 @@ new Vector3();
|
|
|
1653
1653
|
out._y = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;
|
|
1654
1654
|
out._z = cosYawPitch * sinRoll - sinYawPitch * cosRoll;
|
|
1655
1655
|
out._w = cosYawPitch * cosRoll + sinYawPitch * sinRoll;
|
|
1656
|
-
out._onValueChanged
|
|
1656
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1657
1657
|
};
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Calculate a quaternion from the specified 3x3 matrix.
|
|
@@ -1695,7 +1695,7 @@ new Vector3();
|
|
|
1695
1695
|
out._z = 0.5 * sqrt;
|
|
1696
1696
|
out._w = (m12 - m21) * half;
|
|
1697
1697
|
}
|
|
1698
|
-
out._onValueChanged
|
|
1698
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1699
1699
|
};
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Calculate the inverse of the specified quaternion.
|
|
@@ -1710,7 +1710,7 @@ new Vector3();
|
|
|
1710
1710
|
out._y = -y * invDot;
|
|
1711
1711
|
out._z = -z * invDot;
|
|
1712
1712
|
out._w = w * invDot;
|
|
1713
|
-
out._onValueChanged
|
|
1713
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
1716
|
/**
|
|
@@ -1757,7 +1757,7 @@ new Vector3();
|
|
|
1757
1757
|
out.y = inverse * start.y + opposite * end.y;
|
|
1758
1758
|
out.z = inverse * start.z + opposite * end.z;
|
|
1759
1759
|
out.w = inverse * start.w + opposite * end.w;
|
|
1760
|
-
out._onValueChanged
|
|
1760
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1761
1761
|
};
|
|
1762
1762
|
/**
|
|
1763
1763
|
* Scales the specified quaternion magnitude to unit length.
|
|
@@ -1772,7 +1772,7 @@ new Vector3();
|
|
|
1772
1772
|
out._y = _y * len;
|
|
1773
1773
|
out._z = _z * len;
|
|
1774
1774
|
out._w = _w * len;
|
|
1775
|
-
out._onValueChanged
|
|
1775
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
1778
1778
|
/**
|
|
@@ -1787,7 +1787,7 @@ new Vector3();
|
|
|
1787
1787
|
out._y = 0;
|
|
1788
1788
|
out._z = 0;
|
|
1789
1789
|
out._w = c;
|
|
1790
|
-
out._onValueChanged
|
|
1790
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1791
1791
|
};
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Calculate a quaternion rotate around Y axis.
|
|
@@ -1801,7 +1801,7 @@ new Vector3();
|
|
|
1801
1801
|
out._y = s;
|
|
1802
1802
|
out._z = 0;
|
|
1803
1803
|
out._w = c;
|
|
1804
|
-
out._onValueChanged
|
|
1804
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1805
1805
|
};
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Calculate a quaternion rotate around Z axis.
|
|
@@ -1815,7 +1815,7 @@ new Vector3();
|
|
|
1815
1815
|
out._y = 0;
|
|
1816
1816
|
out._z = s;
|
|
1817
1817
|
out._w = c;
|
|
1818
|
-
out._onValueChanged
|
|
1818
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1819
1819
|
};
|
|
1820
1820
|
/**
|
|
1821
1821
|
* Calculate a quaternion that the specified quaternion rotate around X axis.
|
|
@@ -1831,7 +1831,7 @@ new Vector3();
|
|
|
1831
1831
|
out._y = _y * bw + _z * bx;
|
|
1832
1832
|
out._z = _z * bw - _y * bx;
|
|
1833
1833
|
out._w = _w * bw - _x * bx;
|
|
1834
|
-
out._onValueChanged
|
|
1834
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1835
1835
|
};
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Calculate a quaternion that the specified quaternion rotate around Y axis.
|
|
@@ -1847,7 +1847,7 @@ new Vector3();
|
|
|
1847
1847
|
out._y = _y * bw + _w * by;
|
|
1848
1848
|
out._z = _z * bw + _x * by;
|
|
1849
1849
|
out._w = _w * bw - _y * by;
|
|
1850
|
-
out._onValueChanged
|
|
1850
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1851
1851
|
};
|
|
1852
1852
|
/**
|
|
1853
1853
|
* Calculate a quaternion that the specified quaternion rotate around Z axis.
|
|
@@ -1863,7 +1863,7 @@ new Vector3();
|
|
|
1863
1863
|
out._y = _y * bw - _x * bz;
|
|
1864
1864
|
out._z = _z * bw + _w * bz;
|
|
1865
1865
|
out._w = _w * bw - _z * bz;
|
|
1866
|
-
out._onValueChanged
|
|
1866
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1867
1867
|
};
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Scale a quaternion by a given number.
|
|
@@ -1875,7 +1875,7 @@ new Vector3();
|
|
|
1875
1875
|
out._y = a._y * s;
|
|
1876
1876
|
out._z = a._z * s;
|
|
1877
1877
|
out._w = a._w * s;
|
|
1878
|
-
out._onValueChanged
|
|
1878
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
1879
1879
|
};
|
|
1880
1880
|
_create_class(Quaternion, [
|
|
1881
1881
|
{
|
|
@@ -1887,7 +1887,7 @@ new Vector3();
|
|
|
1887
1887
|
},
|
|
1888
1888
|
set: function set(value) {
|
|
1889
1889
|
this._x = value;
|
|
1890
|
-
this._onValueChanged
|
|
1890
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1891
1891
|
}
|
|
1892
1892
|
},
|
|
1893
1893
|
{
|
|
@@ -1899,7 +1899,7 @@ new Vector3();
|
|
|
1899
1899
|
},
|
|
1900
1900
|
set: function set(value) {
|
|
1901
1901
|
this._y = value;
|
|
1902
|
-
this._onValueChanged
|
|
1902
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1903
1903
|
}
|
|
1904
1904
|
},
|
|
1905
1905
|
{
|
|
@@ -1911,7 +1911,7 @@ new Vector3();
|
|
|
1911
1911
|
},
|
|
1912
1912
|
set: function set(value) {
|
|
1913
1913
|
this._z = value;
|
|
1914
|
-
this._onValueChanged
|
|
1914
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1915
1915
|
}
|
|
1916
1916
|
},
|
|
1917
1917
|
{
|
|
@@ -1931,7 +1931,7 @@ new Vector3();
|
|
|
1931
1931
|
},
|
|
1932
1932
|
set: function set(value) {
|
|
1933
1933
|
this._w = value;
|
|
1934
|
-
this._onValueChanged
|
|
1934
|
+
this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
1937
|
]);
|
|
@@ -2136,7 +2136,7 @@ new Vector3();
|
|
|
2136
2136
|
out._y = (e[6] + e[9]) / s3;
|
|
2137
2137
|
out._z = 0.25 * s3;
|
|
2138
2138
|
}
|
|
2139
|
-
out._onValueChanged
|
|
2139
|
+
out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
|
|
2140
2140
|
return out;
|
|
2141
2141
|
};
|
|
2142
2142
|
/**
|