@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/dist/main.js CHANGED
@@ -2179,11 +2179,11 @@ function _create_class(Constructor, protoProps, staticProps) {
2179
2179
  var unit = xx + yy + zz + ww;
2180
2180
  var test = 2 * (x * w - y * z);
2181
2181
  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 if (test < -(1 - MathUtil.zeroTolerance) * unit) {
2186
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2186
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2187
2187
  out._y = -Math.PI / 2;
2188
2188
  out._z = 0;
2189
2189
  } else {