@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/LICENSE +2 -2
- package/dist/browser.js +3 -2
- package/dist/browser.js.map +1 -0
- package/dist/browser.min.js +2 -1
- package/dist/browser.min.js.map +1 -0
- 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 +4 -4
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),
|
|
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),
|
|
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 {
|