@ue-too/border 0.5.1 → 0.5.2

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.
Files changed (32) hide show
  1. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/greateCircle.js +82 -0
  2. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/greateCircle.js.map +1 -0
  3. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/index.js +4 -0
  4. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/index.js.map +1 -0
  5. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/projection.js +39 -0
  6. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/projection.js.map +1 -0
  7. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/rhumbLine.js +66 -0
  8. package/.rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/rhumbLine.js.map +1 -0
  9. package/dist/border.tsbuildinfo +1 -0
  10. package/dist/greateCircle.d.ts +14 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/package.json +22 -0
  13. package/dist/projection.d.ts +12 -0
  14. package/dist/rhumbLine.d.ts +5 -0
  15. package/jest.config.js +18 -0
  16. package/package.json +10 -9
  17. package/project.json +33 -0
  18. package/rollup.config.js +20 -0
  19. package/src/greateCircle.ts +94 -0
  20. package/src/index.ts +3 -0
  21. package/src/projection.ts +52 -0
  22. package/src/rhumbLine.ts +75 -0
  23. package/test/index.test.ts +3 -0
  24. package/tsconfig.json +21 -0
  25. package/tsconfig.spec.json +12 -0
  26. /package/{border.tsbuildinfo → .rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/border.tsbuildinfo} +0 -0
  27. /package/{greateCircle.d.ts → .rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/greateCircle.d.ts} +0 -0
  28. /package/{index.d.ts → .rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/index.d.ts} +0 -0
  29. /package/{projection.d.ts → .rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/projection.d.ts} +0 -0
  30. /package/{rhumbLine.d.ts → .rollup.cache/home/runner/work/ue-too/ue-too/packages/border/dist/rhumbLine.d.ts} +0 -0
  31. /package/{index.js → dist/index.js} +0 -0
  32. /package/{index.js.map → dist/index.js.map} +0 -0
@@ -0,0 +1,82 @@
1
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2
+ /* Geodesy representation conversion functions (c) Chris Veness 2002-2022 */
3
+ /* MIT Licence */
4
+ /* www.movable-type.co.uk/scripts/latlong.html */
5
+ /* www.movable-type.co.uk/scripts/js/geodesy/geodesy-library.html#dms */
6
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
7
+ export function intermediatePointOnGreatCircle(startCoord, endCoord, fraction) {
8
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI / 180;
9
+ const Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
10
+ const φ1 = startCoord.latitude * Math.PI / 180;
11
+ const λ1 = startCoord.longitude * Math.PI / 180;
12
+ const φ2 = endCoord.latitude * Math.PI / 180;
13
+ const λ2 = endCoord.longitude * Math.PI / 180;
14
+ const angularDistA = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
15
+ Math.cos(φ1) * Math.cos(φ2) *
16
+ Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
17
+ const c = 2 * Math.atan2(Math.sqrt(angularDistA), Math.sqrt(1 - angularDistA));
18
+ const a = Math.sin((1 - fraction) * c) / Math.sin(c);
19
+ const b = Math.sin(fraction * c) / Math.sin(c);
20
+ const x = a * Math.cos(φ1) * Math.cos(λ1) + b * Math.cos(φ2) * Math.cos(λ2);
21
+ const y = a * Math.cos(φ1) * Math.sin(λ1) + b * Math.cos(φ2) * Math.sin(λ2);
22
+ const z = a * Math.sin(φ1) * b * Math.sin(φ2);
23
+ const φi = Math.atan2(z, Math.sqrt(x * x + y * y));
24
+ const λi = Math.atan2(y, x);
25
+ return { latitude: φi, longitude: λi };
26
+ }
27
+ export function midPointOnGreatCircle(startCoord, endCoord) {
28
+ const φ1 = startCoord.latitude * Math.PI / 180;
29
+ const φ2 = endCoord.latitude * Math.PI / 180;
30
+ const λ1 = startCoord.longitude * Math.PI / 180;
31
+ const λ2 = endCoord.longitude * Math.PI / 180;
32
+ const Bx = Math.cos(φ2) * Math.cos(λ2 - λ1);
33
+ const By = Math.cos(φ2) * Math.sin(λ2 - λ1);
34
+ const φ3 = Math.atan2(Math.sin(φ1) + Math.sin(φ2), Math.sqrt((Math.cos(φ1) + Bx) * (Math.cos(φ1) + Bx) + By * By));
35
+ const λ3 = λ1 + Math.atan2(By, Math.cos(φ1) + Bx);
36
+ return { latitude: φ3, longitude: λ3 };
37
+ }
38
+ /**
39
+ * Calculate the initial bearing between two points on the Earth's surface.
40
+ * (traveling along the great circle would result in different bearing from the start point to the end point)
41
+ *
42
+ * @param startCoord - The starting point in GeoCoord format.
43
+ * @param endCoord - The ending point in GeoCoord format.
44
+ * @returns The bearing in degrees.
45
+ */
46
+ export function initialBearingOfGreatCircle(startCoord, endCoord) {
47
+ const φ1 = startCoord.latitude * Math.PI / 180;
48
+ const φ2 = endCoord.latitude * Math.PI / 180;
49
+ const λ1 = startCoord.longitude * Math.PI / 180;
50
+ const λ2 = endCoord.longitude * Math.PI / 180;
51
+ const y = Math.sin(λ2 - λ1) * Math.cos(φ2);
52
+ const x = Math.cos(φ1) * Math.sin(φ2) -
53
+ Math.sin(φ1) * Math.cos(φ2) * Math.cos(λ2 - λ1);
54
+ const θ = Math.atan2(y, x);
55
+ const brng = (θ * 180 / Math.PI + 360) % 360; // in degrees
56
+ return brng;
57
+ }
58
+ export function greatCircleDistance(startCoord, endCoord) {
59
+ const R = 6371e3; // metres
60
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
61
+ const φ2 = endCoord.latitude * Math.PI / 180;
62
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI / 180;
63
+ const Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
64
+ const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
65
+ Math.cos(φ1) * Math.cos(φ2) *
66
+ Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
67
+ const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
68
+ const d = R * c; // in metres
69
+ return d;
70
+ }
71
+ export function destinationFromOriginOnGreatCircle(startCoord, bearing, distance) {
72
+ const R = 6371e3; // metres
73
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
74
+ const λ1 = startCoord.longitude * Math.PI / 180;
75
+ const θ = bearing * Math.PI / 180;
76
+ const d = distance / R; // angular distance in radians
77
+ const φ2 = Math.asin(Math.sin(φ1) * Math.cos(d) +
78
+ Math.cos(φ1) * Math.sin(d) * Math.cos(θ));
79
+ const λ2 = λ1 + Math.atan2(Math.sin(θ) * Math.sin(d) * Math.cos(φ1), Math.cos(d) - Math.sin(φ1) * Math.sin(φ2));
80
+ return { latitude: φ2, longitude: λ2 };
81
+ }
82
+ //# sourceMappingURL=greateCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greateCircle.js","sourceRoot":"","sources":["../src/greateCircle.ts"],"names":[],"mappings":"AAEA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AAGpG,MAAM,UAAU,8BAA8B,CAAC,UAAoB,EAAE,QAAkB,EAAE,QAAgB;IACrG,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;IACrE,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,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,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAC5C,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAClE,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAC,CAAC;AACzC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./projection";
2
+ export * from "./greateCircle";
3
+ export * from "./rhumbLine";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,39 @@
1
+ export function mercatorProjection(interestPoint, centerLongitude = 0) {
2
+ const r = 6371000;
3
+ const latitude = interestPoint.latitude * Math.PI / 180;
4
+ const longitude = interestPoint.longitude * Math.PI / 180;
5
+ let x = r * normalizeAngleMinusPiToPi(longitude - centerLongitude * Math.PI / 180);
6
+ let y = r * Math.log(Math.tan(Math.PI / 4 + latitude / 2));
7
+ return { x: x, y: y };
8
+ }
9
+ export function inverseMercatorProjection(point, centerLongitude = 0) {
10
+ const r = 6371000;
11
+ const longitude = point.x / r + centerLongitude;
12
+ const latitude = 2 * Math.atan(Math.exp(point.y / r)) - Math.PI / 2;
13
+ return { latitude: latitude * 180 / Math.PI, longitude: longitude * 180 / Math.PI };
14
+ }
15
+ export function orthoProjection(interestPoint, origin) {
16
+ const r = 6371000;
17
+ const latitude = interestPoint.latitude * Math.PI / 180;
18
+ const longitude = interestPoint.longitude * Math.PI / 180;
19
+ const x = r * Math.cos(latitude) * Math.sin(longitude - origin.longitude * Math.PI / 180);
20
+ const y = r * (Math.cos(origin.latitude * Math.PI / 180) * Math.sin(latitude) - Math.sin(origin.latitude * Math.PI / 180) * Math.cos(latitude) * Math.cos(longitude - origin.longitude * Math.PI / 180));
21
+ const clipped = Math.sin(origin.latitude * Math.PI / 180) * Math.sin(latitude) + Math.cos(origin.latitude * Math.PI / 180) * Math.cos(latitude) * Math.cos(longitude - origin.longitude * Math.PI / 180);
22
+ return { clipped: clipped < 0, coord: { x: x, y: y } };
23
+ }
24
+ export function inverseOrthoProjection(interestPoint, origin) {
25
+ const r = 6371000;
26
+ const rho = Math.sqrt(interestPoint.x * interestPoint.x + interestPoint.y * interestPoint.y);
27
+ const c = Math.asin(rho / r);
28
+ const latitude = Math.asin(Math.cos(c) * Math.sin(origin.latitude * Math.PI / 180) + (interestPoint.y * Math.sin(c) * Math.cos(origin.latitude * Math.PI / 180)) / rho) * 180 / Math.PI;
29
+ const longitude = origin.longitude + Math.atan2(interestPoint.x * Math.sin(c), rho * Math.cos(c) * Math.cos(origin.latitude * Math.PI / 180) - interestPoint.y * Math.sin(c) * Math.sin(origin.latitude * Math.PI / 180)) * 180 / Math.PI;
30
+ return { latitude: latitude, longitude: longitude };
31
+ }
32
+ function normalizeAngleMinusPiToPi(angle) {
33
+ // Reduce the angle
34
+ angle = angle % (Math.PI * 2);
35
+ // Force it to be in the range -π to π
36
+ angle = (angle + 3 * Math.PI) % (2 * Math.PI) - Math.PI;
37
+ return angle;
38
+ }
39
+ //# sourceMappingURL=projection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projection.js","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,kBAAkB,CAAC,aAAuB,EAAE,kBAA0B,CAAC;IACnF,MAAM,CAAC,GAAG,OAAO,CAAC;IAClB,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;IACxD,MAAM,SAAS,GAAG,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC;IAC1D,IAAI,CAAC,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AC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;IAExD,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -0,0 +1,66 @@
1
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2
+ /* Geodesy representation conversion functions (c) Chris Veness 2002-2022 */
3
+ /* MIT Licence */
4
+ /* www.movable-type.co.uk/scripts/latlong.html */
5
+ /* www.movable-type.co.uk/scripts/js/geodesy/geodesy-library.html#dms */
6
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
7
+ export function rhumbDistance(startCoord, endCoord) {
8
+ const R = 6371e3; // metres
9
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
10
+ const φ2 = endCoord.latitude * Math.PI / 180;
11
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI / 180;
12
+ let Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
13
+ const Δψ = Math.log(Math.tan(Math.PI / 4 + φ2 / 2) / Math.tan(Math.PI / 4 + φ1 / 2));
14
+ const q = Math.abs(Δψ) > 10e-12 ? Δφ / Δψ : Math.cos(φ1); // E-W course becomes ill-conditioned with 0/0
15
+ // if dLon over 180° take shorter rhumb line across the anti-meridian:
16
+ if (Math.abs(Δλ) > Math.PI)
17
+ Δλ = Δλ > 0 ? -(2 * Math.PI - Δλ) : (2 * Math.PI + Δλ);
18
+ const dist = Math.sqrt(Δφ * Δφ + q * q * Δλ * Δλ) * R;
19
+ return dist;
20
+ }
21
+ export function rhumbBearing(startCoord, endCoord) {
22
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
23
+ const φ2 = endCoord.latitude * Math.PI / 180;
24
+ let Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
25
+ const Δψ = Math.log(Math.tan(Math.PI / 4 + φ2 / 2) / Math.tan(Math.PI / 4 + φ1 / 2));
26
+ // if dLon over 180° take shorter rhumb line across the anti-meridian:
27
+ if (Math.abs(Δλ) > Math.PI)
28
+ Δλ = Δλ > 0 ? -(2 * Math.PI - Δλ) : (2 * Math.PI + Δλ);
29
+ const brng = Math.atan2(Δλ, Δψ) * 180 / Math.PI;
30
+ return brng;
31
+ }
32
+ export function destinationFromOriginOnRhumbLine(startCoord, bearing, distance) {
33
+ const R = 6371e3; // metres
34
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
35
+ const λ1 = startCoord.longitude * Math.PI / 180;
36
+ const θ = bearing * Math.PI / 180;
37
+ const d = distance;
38
+ const δ = d / R;
39
+ const Δφ = δ * Math.cos(θ);
40
+ let φ2 = φ1 + Δφ;
41
+ const Δψ = Math.log(Math.tan(φ2 / 2 + Math.PI / 4) / Math.tan(φ1 / 2 + Math.PI / 4));
42
+ const q = Math.abs(Δψ) > 10e-12 ? Δφ / Δψ : Math.cos(φ1); // E-W course becomes ill-conditioned with 0/0
43
+ const Δλ = δ * Math.sin(θ) / q;
44
+ const λ2 = λ1 + Δλ;
45
+ // check for some daft bugger going past the pole, normalise latitude if so
46
+ if (Math.abs(φ2) > Math.PI / 2)
47
+ φ2 = φ2 > 0 ? Math.PI - φ2 : -Math.PI - φ2;
48
+ return { latitude: φ2, longitude: λ2 };
49
+ }
50
+ export function midPointOnRhumbLine(startCoord, endCoord) {
51
+ let λ1 = startCoord.longitude * Math.PI / 180;
52
+ const λ2 = endCoord.longitude * Math.PI / 180;
53
+ const φ1 = startCoord.latitude * Math.PI / 180;
54
+ const φ2 = endCoord.latitude * Math.PI / 180;
55
+ if (Math.abs(λ2 - λ1) > Math.PI)
56
+ λ1 += 2 * Math.PI; // crossing anti-meridian
57
+ const φ3 = (φ1 + φ2) / 2;
58
+ const f1 = Math.tan(Math.PI / 4 + φ1 / 2);
59
+ const f2 = Math.tan(Math.PI / 4 + φ2 / 2);
60
+ const f3 = Math.tan(Math.PI / 4 + φ3 / 2);
61
+ let λ3 = ((λ2 - λ1) * Math.log(f3) + λ1 * Math.log(f2) - λ2 * Math.log(f1)) / Math.log(f2 / f1);
62
+ if (!isFinite(λ3))
63
+ λ3 = (λ1 + λ2) / 2; // parallel of latitude
64
+ return { latitude: φ3, longitude: λ3 };
65
+ }
66
+ //# sourceMappingURL=rhumbLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rhumbLine.js","sourceRoot":"","sources":["../src/rhumbLine.ts"],"names":[],"mappings":"AAEA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AAEpG,MAAM,UAAU,aAAa,CAAC,UAAoB,EAAE,QAAkB;IAClE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,SAAS;IAC3B,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAC,GAAG,CAAC,CAAC,kBAAkB;IAChE,MAAM,EAAE,GAAG,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAC,GAAG,CAAC;IAC3C,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,EAAE,GAAC,GAAG,CAAC;IACnE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAAE,GAAC,GAAG,CAAC;IACnE,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACnF,MAAM,CAAC,GAAG,I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,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;IACzB,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC1C,IAAI,EAAE,GAAG,CAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAElG,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAAE,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,uBAAuB;IAC9D,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAC,CAAC;AACzC,CAAC"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.full.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","../../math/dist/index.d.ts","../src/projection.ts","../src/greateCircle.ts","../src/rhumbLine.ts","../src/index.ts","../../../node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.13.4/node_modules/@types/node/index.d.ts"],"fileIdsList":[[72,115],[60,72,115],[62,65,72,115],[72,112,115],[72,114,115],[115],[72,115,120,150],[72,115,116,121,127,128,135,147,158],[72,115,116,117,127,135],[67,68,69,72,115],[72,115,118,159],[72,115,119,120,128,136],[72,115,120,147,155],[72,115,121,123,127,135],[72,114,115,122],[72,115,123,124],[72,115,127],[72,115,125,127],[72,114,115,127],[72,115,127,128,129,147,158],[72,115,127,128,129,142,147,150],[72,110,115,163],[72,110,115,123,127,130,135,147,158],[72,115,127,128,130,131,135,147,155,158],[72,115,130,132,147,155,158],[70,71,72,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[72,115,127,133],[72,115,134,158],[72,115,123,127,135,147],[72,115,136],[72,115,137],[72,114,115,138],[72,112,113,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[72,115,140],[72,115,141],[72,115,127,142,143],[72,115,142,144,159,161],[72,115,127,147,148,149,150],[72,115,147,149],[72,115,147,148],[72,115,150],[72,115,151],[72,112,115,147],[72,115,127,153,154],[72,115,153,154],[72,115,120,135,147,155],[72,115,156],[72,115,135,157],[72,115,130,141,158],[72,115,120,159],[72,115,147,160],[72,115,134,161],[72,115,162],[72,115,120,127,129,138,147,158,161,163],[72,115,147,164],[58,64,72,115],[62,72,115],[59,63,72,115],[61,72,115],[72,82,86,115,158],[72,82,115,147,158],[72,77,115],[72,79,82,115,155,158],[72,115,135,155],[72,115,165],[72,77,115,165],[72,79,82,115,135,158],[72,74,75,78,81,115,127,147,158],[72,82,89,115],[72,74,80,115],[72,82,103,104,115],[72,78,82,115,150,158,165],[72,103,115,165],[72,76,77,115,165],[72,82,115],[72,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,104,105,106,107,108,109,115],[72,82,97,115],[72,82,89,90,115],[72,80,82,90,91,115],[72,81,115],[72,74,77,82,115],[72,82,86,90,91,115],[72,86,115],[72,80,82,85,115,158],[72,74,79,82,89,115],[72,115,147],[72,77,82,103,115,163,165],[52,54,72,115],[52,54,55,56,72,115],[52,53,72,115]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1305d1e76ca44e30fb8b2b8075fa522b83f60c0bcf5d4326a9d2cf79b53724f8","impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},"c4361f6412caabef1b8609a6052bef331a5378d8a5ca3c94a81ac21b9ec2989e","ea3daf6d23d52c78d7acafed417ea4b07f5bb8cb0e77931c2298710490be9aa7","cec80e4c2b029b41e28b4dfd3e8e504adcae4a075aaf8f2a13e112bb11339741","298a586117f9b83f5d28a3450dacde84da14b3e1f8ce26a31872a4687b6c47d5","a51a348f485e71a0688599f6a501fa4d43a0ceee40a82f2abe3a31561d2a0025",{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"13af9e8fb6757946c48117315866177b95e554d1e773577bb6ca6e40083b6d73","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"b11cb909327c874a4e81bfb390bf0d231e5bf9439052689ab80ba8afa50da17b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"1cbae62b67f180291d211f0e1045fb923a8ec800cfbf9caa13223d769013dae2","impliedFormat":1},{"version":"b52d379b4939681f3781d1cfd5b2c3cbb35e7e76f2425172e165782f8a08228c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1}],"root":[[54,57]],"options":{"composite":true,"declaration":true,"declarationMap":false,"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"module":99,"noEmitHelpers":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":false,"target":7,"tsBuildInfoFile":"./border.tsbuildinfo"},"referencedMap":[[58,1],[61,2],[60,1],[66,3],[112,4],[113,4],[114,5],[72,6],[115,7],[116,8],[117,9],[67,1],[70,10],[68,1],[69,1],[118,11],[119,12],[120,13],[121,14],[122,15],[123,16],[124,16],[126,17],[125,18],[127,19],[128,20],[129,21],[111,22],[71,1],[130,23],[131,24],[132,25],[165,26],[133,27],[134,28],[135,29],[136,30],[137,31],[138,32],[139,33],[140,34],[141,35],[142,36],[143,36],[144,37],[145,1],[146,1],[147,38],[149,39],[148,40],[150,41],[151,42],[152,43],[153,44],[154,45],[155,46],[156,47],[157,48],[158,49],[159,50],[160,51],[161,52],[162,53],[163,54],[164,55],[73,1],[59,1],[65,56],[63,57],[64,58],[62,59],[52,1],[49,1],[50,1],[10,1],[8,1],[9,1],[14,1],[13,1],[2,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[3,1],[23,1],[24,1],[4,1],[25,1],[29,1],[26,1],[27,1],[28,1],[30,1],[31,1],[32,1],[5,1],[33,1],[34,1],[35,1],[36,1],[6,1],[40,1],[37,1],[38,1],[39,1],[41,1],[7,1],[42,1],[51,1],[47,1],[48,1],[43,1],[44,1],[45,1],[46,1],[1,1],[12,1],[11,1],[89,60],[99,61],[88,60],[109,62],[80,63],[79,64],[108,65],[102,66],[107,67],[82,68],[96,69],[81,70],[105,71],[77,72],[76,65],[106,73],[78,74],[83,75],[84,1],[87,75],[74,1],[110,76],[100,77],[91,78],[92,79],[94,80],[90,81],[93,82],[103,65],[85,83],[86,84],[95,85],[75,86],[98,77],[97,75],[101,1],[104,87],[55,88],[57,89],[54,90],[56,88],[53,1]],"emitSignatures":[[54,"1a7c05dde903d9a487c188c952862de5089f1f843413913f3138f8864940e5e5"],[55,"42603d0e0181d1702a4e961abad91a818d7b34bf2c0ca04fecabe92c2e6f7536"],[56,"c57900bee8f19d2d70e912b33c34395ee9ad6694ee2e5159d51ce4ae01774ae5"]],"latestChangedDtsFile":"./index.d.ts","version":"5.7.3"}
@@ -0,0 +1,14 @@
1
+ import { GeoCoord } from "./projection";
2
+ export declare function intermediatePointOnGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord, fraction: number): GeoCoord;
3
+ export declare function midPointOnGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord): GeoCoord;
4
+ /**
5
+ * Calculate the initial bearing between two points on the Earth's surface.
6
+ * (traveling along the great circle would result in different bearing from the start point to the end point)
7
+ *
8
+ * @param startCoord - The starting point in GeoCoord format.
9
+ * @param endCoord - The ending point in GeoCoord format.
10
+ * @returns The bearing in degrees.
11
+ */
12
+ export declare function initialBearingOfGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord): number;
13
+ export declare function greatCircleDistance(startCoord: GeoCoord, endCoord: GeoCoord): number;
14
+ export declare function destinationFromOriginOnGreatCircle(startCoord: GeoCoord, bearing: number, distance: number): GeoCoord;
@@ -0,0 +1,3 @@
1
+ export * from "./projection";
2
+ export * from "./greateCircle";
3
+ export * from "./rhumbLine";
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@ue-too/border",
3
+ "type": "module",
4
+ "version": "0.5.2",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.js",
12
+ "default": "./index.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "dependencies": {
17
+ "@ue-too/math": "^0.5.2"
18
+ },
19
+ "main": "./index.js",
20
+ "types": "./index.d.ts",
21
+ "module": "./index.js"
22
+ }
@@ -0,0 +1,12 @@
1
+ import { Point } from "@ue-too/math";
2
+ export type GeoCoord = {
3
+ longitude: number;
4
+ latitude: number;
5
+ };
6
+ export declare function mercatorProjection(interestPoint: GeoCoord, centerLongitude?: number): Point;
7
+ export declare function inverseMercatorProjection(point: Point, centerLongitude?: number): GeoCoord;
8
+ export declare function orthoProjection(interestPoint: GeoCoord, origin: GeoCoord): {
9
+ clipped: boolean;
10
+ coord: Point;
11
+ };
12
+ export declare function inverseOrthoProjection(interestPoint: Point, origin: GeoCoord): GeoCoord;
@@ -0,0 +1,5 @@
1
+ import { GeoCoord } from "./projection";
2
+ export declare function rhumbDistance(startCoord: GeoCoord, endCoord: GeoCoord): number;
3
+ export declare function rhumbBearing(startCoord: GeoCoord, endCoord: GeoCoord): number;
4
+ export declare function destinationFromOriginOnRhumbLine(startCoord: GeoCoord, bearing: number, distance: number): GeoCoord;
5
+ export declare function midPointOnRhumbLine(startCoord: GeoCoord, endCoord: GeoCoord): GeoCoord;
package/jest.config.js ADDED
@@ -0,0 +1,18 @@
1
+ /** @type {import('ts-jest').JestConfigWithTsJest} */
2
+ export default {
3
+ preset: 'ts-jest',
4
+ testEnvironment: 'node',
5
+ rootDir: '.',
6
+ testMatch: ['<rootDir>/test/**/*.test.ts'],
7
+ moduleFileExtensions: ['ts', 'js'],
8
+ extensionsToTreatAsEsm: ['.ts'],
9
+ transform: {
10
+ '^.+\\.ts$': ['ts-jest', {
11
+ useESM: true,
12
+ tsconfig: 'tsconfig.spec.json'
13
+ }]
14
+ },
15
+ moduleNameMapper: {
16
+ '^@ue-too/(.*)$': '<rootDir>/../$1/src'
17
+ }
18
+ };
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@ue-too/border",
3
3
  "type": "module",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "exports": {
6
6
  ".": {
7
- "types": "./index.d.ts",
8
- "import": "./index.js",
9
- "default": "./index.js"
7
+ "types": "./src/index.ts",
8
+ "import": "./src/index.ts",
9
+ "default": "./src/index.ts"
10
10
  },
11
11
  "./package.json": "./package.json"
12
12
  },
13
13
  "dependencies": {
14
- "@ue-too/math": "^0.5.1"
14
+ "@ue-too/math": "0.5.2"
15
15
  },
16
- "main": "./index.js",
17
- "types": "./index.d.ts",
18
- "module": "./index.js",
16
+ "main": "./src/index.ts",
17
+ "types": "./src/index.ts",
18
+ "module": "./src/index.ts",
19
19
  "scripts": {
20
- "test": "echo \"Error: no test specified\" && exit 1"
20
+ "test": "jest",
21
+ "build": "rm -rf dist && rollup -c rollup.config.js"
21
22
  }
22
23
  }
package/project.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "border",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/border/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "nx:run-commands",
9
+ "options": {
10
+ "command": "pnpm build",
11
+ "cwd": "packages/border"
12
+ }
13
+ },
14
+ "move-package": {
15
+ "executor": "nx:run-commands",
16
+ "options": {
17
+ "command": "node ../../scripts/move-package.mjs",
18
+ "cwd": "packages/border"
19
+ }
20
+ },
21
+ "test": {
22
+ "executor": "nx:run-commands",
23
+ "options": {
24
+ "command": "pnpm test",
25
+ "cwd": "packages/border"
26
+ }
27
+ }
28
+ },
29
+ "tags": [],
30
+ "implicitDependencies": [
31
+ "math"
32
+ ]
33
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @type {import('rollup').RollupOptions}
3
+ */
4
+ import typescript from '@rollup/plugin-typescript';
5
+
6
+ export default {
7
+ input: 'src/index.ts',
8
+ output: {
9
+ file: 'dist/index.js',
10
+ format: 'esm',
11
+ sourcemap: true
12
+ },
13
+ plugins: [
14
+ typescript({
15
+ tsconfig: 'tsconfig.json',
16
+ outputToFilesystem: true,
17
+ })
18
+ ],
19
+ external: ['@ue-too/math']
20
+ };
@@ -0,0 +1,94 @@
1
+ import { GeoCoord } from "./projection";
2
+
3
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
4
+ /* Geodesy representation conversion functions (c) Chris Veness 2002-2022 */
5
+ /* MIT Licence */
6
+ /* www.movable-type.co.uk/scripts/latlong.html */
7
+ /* www.movable-type.co.uk/scripts/js/geodesy/geodesy-library.html#dms */
8
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
9
+
10
+
11
+ export function intermediatePointOnGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord, fraction: number): GeoCoord{
12
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI / 180;
13
+ const Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
14
+ const φ1 = startCoord.latitude * Math.PI / 180;
15
+ const λ1 = startCoord.longitude * Math.PI / 180;
16
+ const φ2 = endCoord.latitude * Math.PI / 180;
17
+ const λ2 = endCoord.longitude * Math.PI / 180;
18
+ const angularDistA = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
19
+ Math.cos(φ1) * Math.cos(φ2) *
20
+ Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
21
+ const c = 2 * Math.atan2(Math.sqrt(angularDistA), Math.sqrt(1 - angularDistA));
22
+
23
+ const a = Math.sin((1 - fraction) * c) / Math.sin(c);
24
+ const b = Math.sin(fraction * c) / Math.sin(c);
25
+ const x = a * Math.cos(φ1) * Math.cos(λ1) + b * Math.cos(φ2) * Math.cos(λ2);
26
+ const y = a * Math.cos(φ1) * Math.sin(λ1) + b * Math.cos(φ2) * Math.sin(λ2);
27
+ const z = a * Math.sin(φ1) * b * Math.sin(φ2);
28
+ const φi = Math.atan2(z, Math.sqrt(x * x + y * y));
29
+ const λi = Math.atan2(y, x);
30
+ return {latitude: φi, longitude: λi};
31
+ }
32
+
33
+ export function midPointOnGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord): GeoCoord{
34
+ const φ1 = startCoord.latitude * Math.PI / 180;
35
+ const φ2 = endCoord.latitude * Math.PI / 180;
36
+ const λ1 = startCoord.longitude * Math.PI / 180;
37
+ const λ2 = endCoord.longitude * Math.PI / 180;
38
+ const Bx = Math.cos(φ2) * Math.cos(λ2 - λ1);
39
+ const By = Math.cos(φ2) * Math.sin(λ2 - λ1);
40
+ const φ3 = Math.atan2(Math.sin(φ1) + Math.sin(φ2),
41
+ Math.sqrt( (Math.cos(φ1) + Bx) * (Math.cos(φ1) + Bx) + By * By ) );
42
+ const λ3 = λ1 + Math.atan2(By, Math.cos(φ1) + Bx);
43
+ return {latitude: φ3, longitude: λ3};
44
+ }
45
+
46
+ /**
47
+ * Calculate the initial bearing between two points on the Earth's surface.
48
+ * (traveling along the great circle would result in different bearing from the start point to the end point)
49
+ *
50
+ * @param startCoord - The starting point in GeoCoord format.
51
+ * @param endCoord - The ending point in GeoCoord format.
52
+ * @returns The bearing in degrees.
53
+ */
54
+ export function initialBearingOfGreatCircle(startCoord: GeoCoord, endCoord: GeoCoord): number{
55
+ const φ1 = startCoord.latitude * Math.PI / 180;
56
+ const φ2 = endCoord.latitude * Math.PI / 180;
57
+ const λ1 = startCoord.longitude * Math.PI / 180;
58
+ const λ2 = endCoord.longitude * Math.PI / 180;
59
+ const y = Math.sin(λ2-λ1) * Math.cos(φ2);
60
+ const x = Math.cos(φ1) * Math.sin(φ2) -
61
+ Math.sin(φ1) * Math.cos(φ2)*Math.cos(λ2 - λ1);
62
+ const θ = Math.atan2(y, x);
63
+ const brng = (θ * 180 / Math.PI + 360) % 360; // in degrees
64
+ return brng;
65
+ }
66
+
67
+ export function greatCircleDistance(startCoord: GeoCoord, endCoord: GeoCoord): number{
68
+ const R = 6371e3; // metres
69
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
70
+ const φ2 = endCoord.latitude * Math.PI / 180;
71
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI / 180;
72
+ const Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
73
+
74
+ const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
75
+ Math.cos(φ1) * Math.cos(φ2) *
76
+ Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
77
+ const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
78
+
79
+ const d = R * c; // in metres
80
+ return d;
81
+ }
82
+
83
+ export function destinationFromOriginOnGreatCircle(startCoord: GeoCoord, bearing: number, distance: number): GeoCoord{
84
+ const R = 6371e3; // metres
85
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
86
+ const λ1 = startCoord.longitude * Math.PI / 180;
87
+ const θ = bearing * Math.PI / 180;
88
+ const d = distance / R; // angular distance in radians
89
+ const φ2 = Math.asin(Math.sin(φ1) * Math.cos(d) +
90
+ Math.cos(φ1) * Math.sin(d) * Math.cos(θ) );
91
+ const λ2 = λ1 + Math.atan2(Math.sin(θ) * Math.sin(d) * Math.cos(φ1),
92
+ Math.cos(d) - Math.sin(φ1) * Math.sin(φ2));
93
+ return {latitude: φ2, longitude: λ2};
94
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./projection";
2
+ export * from "./greateCircle";
3
+ export * from "./rhumbLine";
@@ -0,0 +1,52 @@
1
+ import { Point } from "@ue-too/math";
2
+
3
+ export type GeoCoord = {
4
+ longitude: number;
5
+ latitude: number;
6
+ }
7
+
8
+ export function mercatorProjection(interestPoint: GeoCoord, centerLongitude: number = 0): Point{
9
+ const r = 6371000;
10
+ const latitude = interestPoint.latitude * Math.PI / 180;
11
+ const longitude = interestPoint.longitude * Math.PI / 180;
12
+ let x = r * normalizeAngleMinusPiToPi(longitude - centerLongitude * Math.PI / 180);
13
+ let y = r * Math.log(Math.tan(Math.PI / 4 + latitude / 2));
14
+ return {x: x, y: y};
15
+ }
16
+
17
+ export function inverseMercatorProjection(point: Point, centerLongitude: number = 0): GeoCoord{
18
+ const r = 6371000;
19
+ const longitude = point.x / r + centerLongitude;
20
+ const latitude = 2 * Math.atan(Math.exp(point.y / r)) - Math.PI / 2;
21
+ return {latitude: latitude * 180 / Math.PI, longitude: longitude * 180 / Math.PI};
22
+ }
23
+
24
+ export function orthoProjection(interestPoint: GeoCoord, origin: GeoCoord): {clipped: boolean, coord: Point}{
25
+ const r = 6371000;
26
+ const latitude = interestPoint.latitude * Math.PI / 180;
27
+ const longitude = interestPoint.longitude * Math.PI / 180;
28
+ const x = r * Math.cos(latitude) * Math.sin(longitude - origin.longitude * Math.PI / 180);
29
+ const y = r * (Math.cos(origin.latitude * Math.PI / 180) * Math.sin(latitude) - Math.sin(origin.latitude * Math.PI / 180) * Math.cos(latitude) * Math.cos(longitude - origin.longitude * Math.PI / 180));
30
+ const clipped = Math.sin(origin.latitude * Math.PI / 180) * Math.sin(latitude) + Math.cos(origin.latitude * Math.PI / 180) * Math.cos(latitude) * Math.cos(longitude - origin.longitude * Math.PI / 180);
31
+
32
+ return {clipped: clipped < 0, coord: {x: x, y: y}};
33
+ }
34
+
35
+ export function inverseOrthoProjection(interestPoint: Point, origin: GeoCoord): GeoCoord {
36
+ const r = 6371000;
37
+ const rho = Math.sqrt(interestPoint.x * interestPoint.x + interestPoint.y * interestPoint.y);
38
+ const c = Math.asin(rho / r);
39
+ const latitude = Math.asin(Math.cos(c) * Math.sin(origin.latitude * Math.PI / 180) + (interestPoint.y * Math.sin(c) * Math.cos(origin.latitude * Math.PI / 180)) / rho) * 180 / Math.PI;
40
+ const longitude = origin.longitude + Math.atan2(interestPoint.x * Math.sin(c), rho * Math.cos(c)*Math.cos(origin.latitude * Math.PI / 180) - interestPoint.y * Math.sin(c) * Math.sin(origin.latitude * Math.PI / 180)) * 180 / Math.PI;
41
+ return {latitude: latitude, longitude: longitude};
42
+ }
43
+
44
+ function normalizeAngleMinusPiToPi(angle: number): number {
45
+ // Reduce the angle
46
+ angle = angle % (Math.PI * 2);
47
+
48
+ // Force it to be in the range -π to π
49
+ angle = (angle + 3 * Math.PI) % (2 * Math.PI) - Math.PI;
50
+
51
+ return angle;
52
+ }
@@ -0,0 +1,75 @@
1
+ import { GeoCoord } from "./projection";
2
+
3
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
4
+ /* Geodesy representation conversion functions (c) Chris Veness 2002-2022 */
5
+ /* MIT Licence */
6
+ /* www.movable-type.co.uk/scripts/latlong.html */
7
+ /* www.movable-type.co.uk/scripts/js/geodesy/geodesy-library.html#dms */
8
+ /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
9
+
10
+ export function rhumbDistance(startCoord: GeoCoord, endCoord: GeoCoord): number{
11
+ const R = 6371e3; // metres
12
+ const φ1 = startCoord.latitude * Math.PI/180; // φ, λ in radians
13
+ const φ2 = endCoord.latitude * Math.PI/180;
14
+ const Δφ = (endCoord.latitude - startCoord.latitude) * Math.PI/180;
15
+ let Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI/180;
16
+ const Δψ = Math.log(Math.tan(Math.PI / 4 + φ2 / 2)/Math.tan(Math.PI / 4 + φ1 / 2));
17
+ const q = Math.abs(Δψ) > 10e-12 ? Δφ / Δψ : Math.cos(φ1); // E-W course becomes ill-conditioned with 0/0
18
+
19
+ // if dLon over 180° take shorter rhumb line across the anti-meridian:
20
+ if (Math.abs(Δλ) > Math.PI) Δλ = Δλ > 0 ? - (2 * Math.PI - Δλ) : (2 * Math.PI + Δλ);
21
+
22
+ const dist = Math.sqrt(Δφ * Δφ + q * q * Δλ * Δλ) * R;
23
+ return dist;
24
+ }
25
+
26
+ export function rhumbBearing(startCoord: GeoCoord, endCoord: GeoCoord): number{
27
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
28
+ const φ2 = endCoord.latitude * Math.PI / 180;
29
+ let Δλ = (endCoord.longitude - startCoord.longitude) * Math.PI / 180;
30
+ const Δψ = Math.log(Math.tan(Math.PI / 4 + φ2 / 2) / Math.tan(Math.PI / 4 + φ1 / 2));
31
+
32
+ // if dLon over 180° take shorter rhumb line across the anti-meridian:
33
+ if (Math.abs(Δλ) > Math.PI) Δλ = Δλ > 0 ? -(2 * Math.PI-Δλ) : (2 * Math.PI + Δλ);
34
+
35
+ const brng = Math.atan2(Δλ, Δψ) * 180 / Math.PI;
36
+ return brng;
37
+ }
38
+
39
+ export function destinationFromOriginOnRhumbLine(startCoord: GeoCoord, bearing: number, distance: number): GeoCoord{
40
+ const R = 6371e3; // metres
41
+ const φ1 = startCoord.latitude * Math.PI / 180; // φ, λ in radians
42
+ const λ1 = startCoord.longitude * Math.PI / 180;
43
+ const θ = bearing * Math.PI / 180;
44
+ const d = distance;
45
+ const δ = d / R;
46
+ const Δφ = δ * Math.cos(θ);
47
+ let φ2 = φ1 + Δφ;
48
+
49
+ const Δψ = Math.log(Math.tan(φ2 / 2 + Math.PI / 4) / Math.tan(φ1 / 2 + Math.PI / 4));
50
+ const q = Math.abs(Δψ) > 10e-12 ? Δφ / Δψ : Math.cos(φ1); // E-W course becomes ill-conditioned with 0/0
51
+
52
+ const Δλ = δ * Math.sin(θ) / q;
53
+ const λ2 = λ1 + Δλ;
54
+
55
+ // check for some daft bugger going past the pole, normalise latitude if so
56
+ if (Math.abs(φ2) > Math.PI / 2) φ2 = φ2 > 0 ? Math.PI - φ2 : -Math.PI - φ2;
57
+ return {latitude: φ2, longitude: λ2};
58
+ }
59
+
60
+ export function midPointOnRhumbLine(startCoord: GeoCoord, endCoord: GeoCoord): GeoCoord{
61
+ let λ1 = startCoord.longitude * Math.PI / 180;
62
+ const λ2 = endCoord.longitude * Math.PI / 180;
63
+ const φ1 = startCoord.latitude * Math.PI / 180;
64
+ const φ2 = endCoord.latitude * Math.PI / 180;
65
+ if (Math.abs(λ2 - λ1) > Math.PI) λ1 += 2 * Math.PI; // crossing anti-meridian
66
+
67
+ const φ3 = (φ1 + φ2) / 2;
68
+ const f1 = Math.tan(Math.PI / 4 + φ1 / 2);
69
+ const f2 = Math.tan(Math.PI / 4 + φ2 / 2);
70
+ const f3 = Math.tan(Math.PI / 4 + φ3 / 2);
71
+ let λ3 = ( (λ2 - λ1) * Math.log(f3) + λ1 * Math.log(f2) - λ2 * Math.log(f1) ) / Math.log(f2 / f1);
72
+
73
+ if (!isFinite(λ3)) λ3 = (λ1 + λ2) / 2; // parallel of latitude
74
+ return {latitude: φ3, longitude: λ3};
75
+ }
@@ -0,0 +1,3 @@
1
+ test("todo", () => {
2
+ expect(true).toBe(true);
3
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "baseUrl": ".",
6
+ "outDir": "dist",
7
+ "tsBuildInfoFile": "dist/border.tsbuildinfo",
8
+ "declaration": true,
9
+ "module": "ESNext",
10
+ "moduleResolution": "node"
11
+ },
12
+ "include": [
13
+ "src/**/*"
14
+ ],
15
+ "references": [
16
+ {
17
+ "path": "../math"
18
+ }
19
+ ]
20
+ }
21
+
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "baseUrl": ".",
6
+ "outDir": "dist",
7
+ "tsBuildInfoFile": "dist/border.tsbuildinfo",
8
+ "declaration": true
9
+ },
10
+ "include": ["test/**/*"]
11
+ }
12
+
File without changes
File without changes