checkpoint poly arc finding (for drilling op upgrade)

This commit is contained in:
Stewart Allen 2024-07-02 13:28:13 -04:00
commit 9f14ecf88a
3 changed files with 99 additions and 15 deletions

View file

@ -109,6 +109,13 @@ function sqr(v) {
return v * v
}
/**
* return distance between two points
*/
function dist2D(p1, p2) {
return Math.sqrt(distSq(p1, p2));
}
/**
* return distance squared between two points
*/
@ -569,6 +576,7 @@ base.util = {
pwait,
ptimer,
flatten,
dist2D,
distSq,
distSqv2,
center2d,
@ -577,6 +585,7 @@ base.util = {
orderClosest,
doCombinations,
offsetPrecision,
circleCenter,
numOrDefault,
thetaDiff,
intersect,