mirror of
https://github.com/HybridDog/vector_extras.git
synced 2024-09-27 14:50:36 +02:00
Fix a bug in deprecated vector.plane
This commit is contained in:
parent
9116fe4e45
commit
8c0ffcc4a7
2
init.lua
2
init.lua
|
@ -273,7 +273,7 @@ end
|
||||||
--local areas = {}
|
--local areas = {}
|
||||||
function funcs.plane(ps)
|
function funcs.plane(ps)
|
||||||
-- sort positions and imagine the first one (A) as vector.zero
|
-- 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 pos = ps[1]
|
||||||
local B = vector.subtract(ps[2], pos)
|
local B = vector.subtract(ps[2], pos)
|
||||||
local C = vector.subtract(ps[3], pos)
|
local C = vector.subtract(ps[3], pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user