Commit 3bad45c3 authored by Scott Sun's avatar Scott Sun

scott

parent 8f49bd3a
...@@ -2193,6 +2193,7 @@ function all_bga_min_pitch_anal(props){ // 分析所有bga中间距最小的 ...@@ -2193,6 +2193,7 @@ function all_bga_min_pitch_anal(props){ // 分析所有bga中间距最小的
GEN.deleteLayer({job:job,layer:tmp_layer2}) GEN.deleteLayer({job:job,layer:tmp_layer2})
return res return res
} }
function bgaPitch(props){ function bgaPitch(props){
var job = props.job var job = props.job
var step = props.step var step = props.step
...@@ -2377,7 +2378,6 @@ function saveMeans(props){ ...@@ -2377,7 +2378,6 @@ function saveMeans(props){
fs.chmod(respath+"/meas",777) fs.chmod(respath+"/meas",777)
} }
// 算弧长 // 算弧长
function arcLength(x1,y1,x2,y2,x3,y3){ function arcLength(x1,y1,x2,y2,x3,y3){
var cos0 = +((x3-x1)*(x2-x3) + (y3-y1)*(y2-y3)) / (Math.pow((Math.pow(x2-x3,2) + Math.pow(y2-y3,2)),0.5) * Math.pow((Math.pow(x3-x1,2) + Math.pow(y3-y1,2)),0.5)) var cos0 = +((x3-x1)*(x2-x3) + (y3-y1)*(y2-y3)) / (Math.pow((Math.pow(x2-x3,2) + Math.pow(y2-y3,2)),0.5) * Math.pow((Math.pow(x3-x1,2) + Math.pow(y3-y1,2)),0.5))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment