From a6738ee6ff3d1850cc035274ebe039196299fbf8 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Mon, 22 Apr 2019 15:42:47 +0200 Subject: [PATCH] libs/lua-math-polygon: fix spaces after commas Signed-off-by: Jan-Tarek Butt --- libs/lua-math-polygon/src/math-polygon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/lua-math-polygon/src/math-polygon.lua b/libs/lua-math-polygon/src/math-polygon.lua index 85599a4..7a43a9c 100644 --- a/libs/lua-math-polygon/src/math-polygon.lua +++ b/libs/lua-math-polygon/src/math-polygon.lua @@ -47,7 +47,7 @@ end function M.point_in_polygon(poly, point) local t = -1 for i=1, #poly-1 do - t = t * M.cross_prod_test(point.lon,point.lat,poly[i].lon,poly[i].lat,poly[i+1].lon,poly[i+1].lat) + t = t * M.cross_prod_test(point.lon, point.lat, poly[i].lon, poly[i].lat, poly[i+1].lon, poly[i+1].lat) if t == 0 then break end end return t