@galacean/engine-math 1.2.0-beta.2 → 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.
package/dist/main.js CHANGED
@@ -2249,11 +2249,11 @@ function _create_class(Constructor, protoProps, staticProps) {
2249
2249
  var unit = xx + yy + zz + ww;
2250
2250
  var test = 2 * (x * w - y * z);
2251
2251
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
2252
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2252
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2253
2253
  out._y = Math.PI / 2;
2254
2254
  out._z = 0;
2255
2255
  } else if (test < -(1 - MathUtil.zeroTolerance) * unit) {
2256
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2256
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2257
2257
  out._y = -Math.PI / 2;
2258
2258
  out._z = 0;
2259
2259
  } else {