@galacean/engine-xr-webxr 1.2.0-beta.2 → 1.2.0-beta.4

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright © 2020-2023 Galacean authors
3
+ Copyright (c) 2020 - present Ant Group
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
21
+ THE SOFTWARE.
package/dist/browser.js CHANGED
@@ -3685,11 +3685,11 @@
3685
3685
  var unit = xx + yy + zz + ww;
3686
3686
  var test = 2 * (x * w - y * z);
3687
3687
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
3688
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
3688
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
3689
3689
  out._y = Math.PI / 2;
3690
3690
  out._z = 0;
3691
3691
  } else if (test < -(1 - MathUtil.zeroTolerance) * unit) {
3692
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
3692
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
3693
3693
  out._y = -Math.PI / 2;
3694
3694
  out._z = 0;
3695
3695
  } else {
@@ -6545,3 +6545,4 @@
6545
6545
  Object.defineProperty(exports, '__esModule', { value: true });
6546
6546
 
6547
6547
  }));
6548
+ //# sourceMappingURL=browser.js.map