@thi.ng/geom-closest-point 2.1.7 → 2.1.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-03-11T12:13:49Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -115,4 +115,4 @@ If this project contributes to an academic publication, please cite it as:
115
115
 
116
116
  ## License
117
117
 
118
- © 2018 - 2021 Karsten Schmidt // Apache Software License 2.0
118
+ © 2018 - 2022 Karsten Schmidt // Apache Software License 2.0
package/circle.d.ts CHANGED
@@ -2,10 +2,10 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
2
2
  /**
3
3
  * Returns closest point to `p` on circle defined by origin `c` and radius `r`.
4
4
  *
5
- * @param p
6
- * @param c
7
- * @param r
8
- * @param out
5
+ * @param p -
6
+ * @param c -
7
+ * @param r -
8
+ * @param out -
9
9
  */
10
10
  export declare const closestPointCircle: (p: ReadonlyVec, c: ReadonlyVec, r: number, out?: Vec) => Vec;
11
11
  /**
package/circle.js CHANGED
@@ -3,10 +3,10 @@ import { direction } from "@thi.ng/vectors/direction";
3
3
  /**
4
4
  * Returns closest point to `p` on circle defined by origin `c` and radius `r`.
5
5
  *
6
- * @param p
7
- * @param c
8
- * @param r
9
- * @param out
6
+ * @param p -
7
+ * @param c -
8
+ * @param r -
9
+ * @param out -
10
10
  */
11
11
  export const closestPointCircle = (p, c, r, out = []) => add(out, c, direction(out, c, p, r));
12
12
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-closest-point",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "2D / 3D closest point / proximity helpers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.3",
38
- "@thi.ng/math": "^5.2.0",
39
- "@thi.ng/vectors": "^7.4.3"
37
+ "@thi.ng/api": "^8.3.4",
38
+ "@thi.ng/math": "^5.3.0",
39
+ "@thi.ng/vectors": "^7.5.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.19.2",
43
- "@thi.ng/testament": "^0.2.3",
42
+ "@microsoft/api-extractor": "^7.19.4",
43
+ "@thi.ng/testament": "^0.2.4",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
- "typedoc": "^0.22.10",
47
- "typescript": "^4.5.3"
46
+ "typedoc": "^0.22.13",
47
+ "typescript": "^4.6.2"
48
48
  },
49
49
  "keywords": [
50
50
  "2d",
@@ -103,5 +103,5 @@
103
103
  ],
104
104
  "year": 2018
105
105
  },
106
- "gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n"
106
+ "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
107
107
  }
package/plane.d.ts CHANGED
@@ -7,19 +7,19 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
7
7
  * If result is > 0 the point lies "above" the plane, if < 0 below the plane or
8
8
  * if zero on the plane.
9
9
  *
10
- * @param p
11
- * @param n
12
- * @param w
10
+ * @param p -
11
+ * @param n -
12
+ * @param w -
13
13
  */
14
14
  export declare const distToPlane: (p: ReadonlyVec, n: ReadonlyVec, w: number) => number;
15
15
  /**
16
16
  * Returns closest point to `p` on the plane defined by normal `n` and `w`. In
17
17
  * 2D this also works for lines.
18
18
  *
19
- * @param p
20
- * @param normal
21
- * @param w
22
- * @param out
19
+ * @param p -
20
+ * @param normal -
21
+ * @param w -
22
+ * @param out -
23
23
  */
24
24
  export declare const closestPointPlane: (p: ReadonlyVec, normal: ReadonlyVec, w: number, out?: Vec) => Vec;
25
25
  //# sourceMappingURL=plane.d.ts.map
package/plane.js CHANGED
@@ -9,18 +9,18 @@ import { sub } from "@thi.ng/vectors/sub";
9
9
  * If result is > 0 the point lies "above" the plane, if < 0 below the plane or
10
10
  * if zero on the plane.
11
11
  *
12
- * @param p
13
- * @param n
14
- * @param w
12
+ * @param p -
13
+ * @param n -
14
+ * @param w -
15
15
  */
16
16
  export const distToPlane = (p, n, w) => dot(n, p) - w;
17
17
  /**
18
18
  * Returns closest point to `p` on the plane defined by normal `n` and `w`. In
19
19
  * 2D this also works for lines.
20
20
  *
21
- * @param p
22
- * @param normal
23
- * @param w
24
- * @param out
21
+ * @param p -
22
+ * @param normal -
23
+ * @param w -
24
+ * @param out -
25
25
  */
26
26
  export const closestPointPlane = (p, normal, w, out = []) => sub(out, p, normalize(out, normal, distToPlane(p, normal, w)));
package/points.d.ts CHANGED
@@ -4,10 +4,10 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
4
4
  * Returns closest point to `p` in given point array, optionally using custom
5
5
  * distance function `dist` (default: {@link @thi.ng/vectors#distSq}).
6
6
  *
7
- * @param p
8
- * @param pts
9
- * @param out
10
- * @param dist
7
+ * @param p -
8
+ * @param pts -
9
+ * @param out -
10
+ * @param dist -
11
11
  */
12
12
  export declare const closestPointArray: (p: ReadonlyVec, pts: Vec[], out?: Vec, dist?: FnU2<ReadonlyVec, number>) => Vec | undefined;
13
13
  //# sourceMappingURL=points.d.ts.map
package/points.js CHANGED
@@ -4,10 +4,10 @@ import { set } from "@thi.ng/vectors/set";
4
4
  * Returns closest point to `p` in given point array, optionally using custom
5
5
  * distance function `dist` (default: {@link @thi.ng/vectors#distSq}).
6
6
  *
7
- * @param p
8
- * @param pts
9
- * @param out
10
- * @param dist
7
+ * @param p -
8
+ * @param pts -
9
+ * @param out -
10
+ * @param dist -
11
11
  */
12
12
  export const closestPointArray = (p, pts, out = [], dist = distSq) => {
13
13
  let minD = Infinity;