more efficient shortest-distance pocket routing

This commit is contained in:
Stewart Allen 2024-08-17 17:57:03 -04:00
commit f08319efe7
3 changed files with 40 additions and 9 deletions

View file

@ -1800,7 +1800,7 @@ class Polygon {
* print paths.
*
* @param {Point} target
* @return {Object} {point:point, distance:distance}
* @return {Object} {distance, point, index: point_index}
*/
findClosestPointTo(target) {
let dist,