@galacean/engine-math 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 +2 -2
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +2 -2
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/miniprogram.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),
|
|
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),
|
|
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),
|
|
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),
|
|
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 {
|