core/utils/math: fix an oops
This commit is contained in:
parent
f155414c9d
commit
e2d206ff44
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,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