@lijuhong1981/jsmath 1.1.11 → 1.2.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/index.js
CHANGED
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
EPSILON21,
|
|
35
35
|
} from "./src/Constant.js";
|
|
36
36
|
import generateUUID from "./src/generateUUID.js";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
37
|
+
import degreesToRadians from "./src/degreesToRadians.js";
|
|
38
|
+
import radiansToDegrees from "./src/radiansToDegrees.js";
|
|
39
39
|
import clamp from "./src/clamp.js";
|
|
40
40
|
import clampLatitude from "./src/clampLatitude.js";
|
|
41
41
|
import clampLongitude from "./src/clampLongitude.js";
|
|
@@ -95,8 +95,8 @@ export {
|
|
|
95
95
|
EPSILON21,
|
|
96
96
|
generateUUID,
|
|
97
97
|
generateUUID as createUUID,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
degreesToRadians,
|
|
99
|
+
radiansToDegrees,
|
|
100
100
|
clamp,
|
|
101
101
|
clampLatitude,
|
|
102
102
|
clampLongitude,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lijuhong1981/jsmath",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "lijuhong1981",
|
|
6
6
|
"homepage": "https://github.com/lijuhong1981/jslibs#readme",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/lijuhong1981/jslibs/issues"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "07e6d454c96f2687462dec07b8dca21fc412d381"
|
|
22
22
|
}
|
|
@@ -5,8 +5,8 @@ import { RADIANS_PER_DEGREE } from "./Constant.js";
|
|
|
5
5
|
* @param {Number} degrees 角度
|
|
6
6
|
* @returns {Number} 弧度
|
|
7
7
|
*/
|
|
8
|
-
function
|
|
8
|
+
function degreesToRadians(degrees) {
|
|
9
9
|
return degrees * RADIANS_PER_DEGREE;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export default
|
|
12
|
+
export default degreesToRadians;
|
|
@@ -5,8 +5,8 @@ import { DEGREES_PER_RADIAN } from "./Constant.js";
|
|
|
5
5
|
* @param {Number} radians 弧度
|
|
6
6
|
* @returns {Number} 角度
|
|
7
7
|
*/
|
|
8
|
-
function
|
|
8
|
+
function radiansToDegrees(radians) {
|
|
9
9
|
return radians * DEGREES_PER_RADIAN;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default
|
|
12
|
+
export default radiansToDegrees;
|