checkpoint poly arc finding (for drilling op upgrade)
This commit is contained in:
parent
edf7a53d4c
commit
9f14ecf88a
3 changed files with 99 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue