- ebai store.

This commit is contained in:
gazebo
2018-09-19 23:00:47 +08:00
parent 3ddcf2f82c
commit f874c37d14
3 changed files with 84 additions and 6 deletions

View File

@@ -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)
}