aa
This commit is contained in:
@@ -1037,3 +1037,17 @@ func polarTriangleArea(tan1, lng1, tan2, lng2 float64) (s float64) {
|
||||
t := tan1 * tan2
|
||||
return 2 * math.Atan2(t*math.Sin(deltaLng), 1+t*math.Cos(deltaLng))
|
||||
}
|
||||
|
||||
func IntListToStrList(i []int) (s []string) {
|
||||
for _, v := range i {
|
||||
s = append(s, utils.Int2Str(v))
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
func StrListToIntList(s []string) (i []int) {
|
||||
for _, v := range s {
|
||||
i = append(i, utils.Str2Int(v))
|
||||
}
|
||||
return i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user