@galacean/engine-math 0.0.0-experimental-renderSort.4 → 0.0.0-experimental-shaderlab.2

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.
@@ -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 {
package/dist/module.js CHANGED
@@ -2245,11 +2245,11 @@ function _create_class(Constructor, protoProps, staticProps) {
2245
2245
  var unit = xx + yy + zz + ww;
2246
2246
  var test = 2 * (x * w - y * z);
2247
2247
  if (test > (1 - MathUtil.zeroTolerance) * unit) {
2248
- out._x = Math.atan2(2.0 * (w * y - x * z), zz + ww - yy - zz);
2248
+ out._x = Math.atan2(2.0 * (w * y - x * z), xx + ww - yy - zz);
2249
2249
  out._y = Math.PI / 2;
2250
2250
  out._z = 0;
2251
2251
  } else 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 {