From 365f18d49473cb50a66c9af92de1d6794521cac8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 07 十一月 2019 20:07:25 +0800
Subject: [PATCH] XMerge branch 'module' of http://192.168.5.5:10010/r/ruleprocess into module

---
 ruleserver/geoPolygon.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ruleserver/geoPolygon.go b/ruleserver/geoPolygon.go
index 6f64108..ec304a4 100644
--- a/ruleserver/geoPolygon.go
+++ b/ruleserver/geoPolygon.go
@@ -43,7 +43,7 @@
 //PintIsInPolygon 鍒ゆ柇鐐规槸鍚﹀湪澶氳竟褰㈠唴閮�
 //point涓鸿鍒ゆ柇鐨勫潗鏍囩偣
 //polygon鏄杈瑰舰鍚勭偣鏁扮粍
-func pintIsInPolygon(point Pointfloat, polygon []Point, widthScale float64, heightScale float64) bool {
+func pintIsInPolygon(point structure.Pointfloat, polygon []Point, widthScale float64, heightScale float64) bool {
 	var nCross int = 0
 	for i := 0; i < len(polygon); i++ {
 
@@ -76,14 +76,14 @@
 func getLocation(rect structure.Rect, n int) ([]structure.Pointfloat, float64) {
 	xArr := make([]float64, n) // 鐢ㄥ垏鐗囦笉鐢ㄦ暟缁勶紝鏁扮粍涓嶈兘鐢ㄥ彉閲忓畾涔夐暱搴�
 	yArr := make([]float64, n)
-	pointArr := make([]Pointfloat, 0, n*n)
+	pointArr := make([]structure.Pointfloat, 0, n*n)
 	for i := 0; i < n; i++ {
 		xArr[i] = rect.X + (rect.Width/float64(2*n))*float64(2*i+1)
 		yArr[i] = rect.Y + (rect.Height/float64(2*n))*float64(2*i+1)
 	}
 	for i := 0; i < n; i++ {
 		for j := 0; j < n; j++ {
-			point := Pointfloat{X: xArr[i], Y: yArr[j]}
+			point := structure.Pointfloat{X: xArr[i], Y: yArr[j]}
 			pointArr = append(pointArr, point)
 		}
 	}

--
Gitblit v1.8.0