@idm-plugin/geo 1.5.5 → 1.5.6
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/dist/index.js +13 -0
- package/dist/index.umd.cjs +2 -2
- package/dist/lane/src/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1939,6 +1939,19 @@ class r {
|
|
|
1939
1939
|
);
|
|
1940
1940
|
return A.sort((b, W) => (b.positionTime || 0) - (W.positionTime || 0)), A.at(-1);
|
|
1941
1941
|
}
|
|
1942
|
+
/**
|
|
1943
|
+
* 翻转轨迹
|
|
1944
|
+
* @param route
|
|
1945
|
+
*/
|
|
1946
|
+
static reverseRoute(M) {
|
|
1947
|
+
const z = [];
|
|
1948
|
+
for (const p of M)
|
|
1949
|
+
z.push(p.reverse());
|
|
1950
|
+
return z;
|
|
1951
|
+
}
|
|
1952
|
+
static reverseCoordinates(M) {
|
|
1953
|
+
return M.reverse();
|
|
1954
|
+
}
|
|
1942
1955
|
/**
|
|
1943
1956
|
* 计算AIRoute
|
|
1944
1957
|
* @param from
|