Fix a bug in deprecated vector.plane

This commit is contained in:
Desour 2020-08-25 00:19:50 +02:00
parent 9116fe4e45
commit 8c0ffcc4a7
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ end
--local areas = {}
function funcs.plane(ps)
-- sort positions and imagine the first one (A) as vector.zero
ps = vector.sort_positions(ps)
vector.sort_positions(ps)
local pos = ps[1]
local B = vector.subtract(ps[2], pos)
local C = vector.subtract(ps[3], pos)