libs/utils: fix a bad var name in pointDistance
This commit is contained in:
parent
fdbeffa42d
commit
10f5b05eca
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function Math.pointDistance(x1, y1, x2, y2)
|
||||||
local vecx, vecy
|
local vecx, vecy
|
||||||
|
|
||||||
vecx = math.max(x1, x2) - math.min(x1, x2)
|
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)
|
return math.sqrt(vecx^2 + vecy^2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue