@lijuhong1981/jsmath 1.0.2 → 1.0.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 CHANGED
@@ -14,8 +14,8 @@ import {
14
14
  } from "./src/Constant.js";
15
15
  import clamp from "./src/clamp.js";
16
16
  import convertToRange from "./src/convertToRange.js";
17
- import convertToDegreesRound from "./src/convertToDegreesRound.js";
18
- import convertToRadiansRound from "./src/convertToRadiansRound.js";
17
+ import convertToDegreesCircular from "./src/convertToDegreesCircular .js";
18
+ import convertToRadiansCircular from "./src/convertToRadiansCircular.js";
19
19
  import isBetween from "./src/isBetween.js";
20
20
  import percentInRange from "./src/percentInRange.js";
21
21
  import percentToRange from "./src/percentToRange.js";
@@ -37,8 +37,8 @@ export {
37
37
  RADIANS_PER_ARCSECOND,
38
38
  clamp,
39
39
  convertToRange,
40
- convertToDegreesRound,
41
- convertToRadiansRound,
40
+ convertToDegreesCircular,
41
+ convertToRadiansCircular,
42
42
  isBetween,
43
43
  percentInRange,
44
44
  percentToRange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuhong1981/jsmath",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -6,8 +6,8 @@ import convertToRange from "./convertToRange.js";
6
6
  * @param {Number} minValue 起始角度,默认0
7
7
  * @returns {Number} 转换后的角度
8
8
  */
9
- function convertToDegreesRound(degrees, minValue = 0) {
9
+ function convertToDegreesCircular(degrees, minValue = 0) {
10
10
  return convertToRange(degrees, minValue, minValue + 360);
11
11
  };
12
12
 
13
- export default convertToDegreesRound;
13
+ export default convertToDegreesCircular;
@@ -7,8 +7,8 @@ import { TWO_PI } from "./Constant.js";
7
7
  * @param {Number} minValue 圆周起始弧度,默认0
8
8
  * @returns {Number} 转换后的弧度
9
9
  */
10
- function convertToRadiansRound(radians, minValue = 0) {
10
+ function convertToRadiansCircular(radians, minValue = 0) {
11
11
  return convertToRange(radians, minValue, minValue + TWO_PI);
12
12
  };
13
13
 
14
- export default convertToRadiansRound;
14
+ export default convertToRadiansCircular;