You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
398 B
Go
25 lines
398 B
Go
package basic
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Isxz(t *testing.T) {
|
|
now := GetNowJDE()
|
|
for i := 0.00; i <= 360.00; i += 0.5 {
|
|
for j := -90.00; j <= 90.00; j += 0.5 {
|
|
fmt.Println(i, j)
|
|
fmt.Println(WhichCst(float64(i), float64(j), now))
|
|
}
|
|
}
|
|
}
|
|
|
|
func Benchmark_IsXZ(b *testing.B) {
|
|
jde := GetNowJDE()
|
|
for i := 0; i < b.N; i++ {
|
|
//GetNowJDE()
|
|
WhichCst(11.11, 12.12, jde)
|
|
}
|
|
|
|
} |