- ebai store.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package jxutils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -22,3 +23,11 @@ func TestSplitSlice(t *testing.T) {
|
||||
}
|
||||
t.Log(result)
|
||||
}
|
||||
|
||||
func TestGetPolygonFromCircle(t *testing.T) {
|
||||
points := GetPolygonFromCircle(104.054727, 30.575362, 1000, 8)
|
||||
for _, v := range points {
|
||||
t.Log(fmt.Sprintf("lng=%f&lat=%f", v[0], v[1]))
|
||||
}
|
||||
t.Log(points)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user