@galacean/engine-math 0.0.0-experimental-renderSort.4 → 0.0.0-experimental-stateMachine.0
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/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright (c) 2020 - present Ant Group
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
21
|
+
THE SOFTWARE.
|
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),
|
|
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 {
|