libs/lua-math-polygon: fix spaces after commas

Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
Jan-Tarek Butt 2019-04-22 15:42:47 +02:00
parent 68e2c63caf
commit a6738ee6ff
1 changed files with 1 additions and 1 deletions

View File

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