添加海拔因素

This commit is contained in:
2022-01-04 14:24:44 +08:00
parent a225f49209
commit b4b2cea738
11 changed files with 162 additions and 43 deletions
+13
View File
@@ -0,0 +1,13 @@
package basic
import (
"fmt"
"math"
"testing"
)
func Test_EarthFn(t *testing.T) {
fmt.Println(HeightDistance(10000))
//近似算法,差距在接受范围内?
fmt.Println(math.Sqrt(((EARTH_AVERAGE_RADIUS)*2 + 10000) * 10000))
}