@galacean/engine-xr-webxr 1.2.0-beta.1 → 1.2.0-beta.3

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.
@@ -2391,11 +2391,11 @@ function _create_class(Constructor, protoProps, staticProps) {
2391
2391
  var unit = xx + yy + zz + ww;
2392
2392
  var test = 2 * (x * w - y * z);
2393
2393
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
2394
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2394
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2395
2395
  out._y = Math.PI / 2;
2396
2396
  out._z = 0;
2397
2397
  } else if (test < -(1 - MathUtil.zeroTolerance) * unit) {
2398
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2398
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2399
2399
  out._y = -Math.PI / 2;
2400
2400
  out._z = 0;
2401
2401
  } else {
package/dist/module.js CHANGED
@@ -2175,11 +2175,11 @@ function _create_class(Constructor, protoProps, staticProps) {
2175
2175
  var unit = xx + yy + zz + ww;
2176
2176
  var test = 2 * (x * w - y * z);
2177
2177
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
2178
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2178
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2179
2179
  out._y = Math.PI / 2;
2180
2180
  out._z = 0;
2181
2181
  } else if (test < -(1 - MathUtil.zeroTolerance) * unit) {
2182
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2182
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2183
2183
  out._y = -Math.PI / 2;
2184
2184
  out._z = 0;
2185
2185
  } else {