@wemap/maths 0.1.1 → 0.1.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/index.js +7 -0
- package/package.json +2 -2
- package/src/Rotations.js +0 -7
package/index.js
CHANGED
|
@@ -7,7 +7,14 @@ import Utils from './src/Utils';
|
|
|
7
7
|
import Vector from './src/Vector';
|
|
8
8
|
import Vector3 from './src/Vector3';
|
|
9
9
|
|
|
10
|
+
const {
|
|
11
|
+
deg2rad, diffAngle, rad2deg
|
|
12
|
+
} = Utils;
|
|
13
|
+
|
|
10
14
|
export {
|
|
15
|
+
deg2rad,
|
|
16
|
+
diffAngle,
|
|
17
|
+
rad2deg,
|
|
11
18
|
Matrix,
|
|
12
19
|
Matrix3,
|
|
13
20
|
Matrix4,
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/maths"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/maths",
|
|
15
|
-
"version": "0.1.
|
|
15
|
+
"version": "0.1.3",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-utils-js/issues"
|
|
18
18
|
},
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"wemap"
|
|
27
27
|
],
|
|
28
28
|
"license": "ISC",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "5a6cf9f90b3efd8b97e6c232a012bfc057b036ea"
|
|
30
30
|
}
|
package/src/Rotations.js
CHANGED
|
@@ -131,13 +131,6 @@ class Rotations {
|
|
|
131
131
|
return Quaternion.normalize(quat);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
// TODO: Should be moved in wemap-positioning
|
|
135
|
-
// // Linear acceleration in ENU
|
|
136
|
-
// static computeLinearAcceleration(quaternion, acc) {
|
|
137
|
-
// const linearAcc = Quaternion.rotate(Quaternion.inverse(quaternion), acc);
|
|
138
|
-
// linearAcc[2] -= Constants.EARTH_GRAVITY;
|
|
139
|
-
// return linearAcc;
|
|
140
|
-
// }
|
|
141
134
|
}
|
|
142
135
|
|
|
143
136
|
export default Rotations;
|