Commit 8f49bd3a authored by Scott Sun's avatar Scott Sun

scott

parent 7c2f9a56
...@@ -2377,6 +2377,7 @@ function saveMeans(props){ ...@@ -2377,6 +2377,7 @@ 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