utils/math: fix an oops

This commit is contained in:
Kazhnuz 2019-04-01 08:09:36 +02:00
parent 02b6cbd87d
commit 824fdbdf86
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function Math.pointDistance(x1, y1, x2, y2)
local vecx, vecy
vecx = math.max(x1, x2) - math.min(x1, x2)
vexy = math.max(y1, y2) - math.min(y1, y2)
vecy = math.max(y1, y2) - math.min(y1, y2)
return math.sqrt(vecx^2 + vecy^2)