This commit is contained in:
2019-10-24 10:44:21 +08:00
commit 9d047c848a
34 changed files with 6573 additions and 0 deletions
+285
View File
File diff suppressed because one or more lines are too long
+23
View File
@@ -0,0 +1,23 @@
package planet
import (
"fmt"
"testing"
)
func Test_WherePlanet(t *testing.T) {
fmt.Println(WherePlanet(0, 0, 2452545.56))
fmt.Println(WherePlanet(0, 1, 2452545.56))
fmt.Println(WherePlanet(0, 2, 2452545.56))
fmt.Println(WherePlanet(1, 0, 2452545.56))
fmt.Println(WherePlanet(1, 1, 2452545.56))
fmt.Println(WherePlanet(1, 2, 2452545.56))
/*
184.76617673228
1.623745085328E-6
1.0021086365503
5.917793283752
-4.7404269321589
0.34835392797302
*/
}