[vector_extras] Update to Git commit 472deb6:

https://github.com/HybridDog/vector_extras/tree/472deb6
This commit is contained in:
AntumDeluge 2017-05-04 21:11:50 -07:00
parent 795e3a26ac
commit b9c52a74ba
2 changed files with 5 additions and 3 deletions

View File

@ -97,7 +97,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [home_gui][] ([BSD 3-Clause](mods/ui/home_gui/LICENSE)) -- version: [f6b5001 Git][ver.home_gui] *2015-08-14*
* [hud][] ([LGPL / CC BY-SA / WTFPL](mods/ui/hud/README.txt))
* [hudmap][] ([LGPL / WTFPL](mods/ui/hudmap/README.txt))
* [vector_extras][] ([WTFPL](mods/vector_extras/LICENSE.txt))
* [vector_extras][] ([WTFPL][lic.vector_extras]) -- version: [472deb6 Git][ver.vector_extras] *2017-01-25*
* weather/
* [lightning][] ([LGPL/CC-BY-SA](mods/weather/lightning/README.md))
* wood/
@ -341,6 +341,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[lic.spectator_mode]: mods/admin/spectator_mode/LICENSE
[lic.stairsplus]: mods/buildings/stairsplus/LICENSE.txt
[lic.throwing]: https://forum.minetest.net/viewtopic.php?t=687#p5739
[lic.vector_extras]: mods/vector_extras/LICENSE.txt
[lic.walking_light]: mods/lighting/walking_light/README.md
[lic.wardrobe]: mods/player_visuals/wardrobe/README.txt
@ -381,6 +382,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.tools_obsidian]: https://github.com/Dragonop/tools_obsidian/tree/f77fd79
[ver.trampoline]: https://github.com/AntumDeluge/mtmod-trampoline/tree/0c9c9c8
[ver.unifieddyes]: https://github.com/minetest-mods/unifieddyes/tree/df177c2
[ver.vector_extras]: https://github.com/HybridDog/vector_extras/tree/472deb6
[ver.walking_light]: https://github.com/petermaloney/walking_light/tree/93de9b7
[ver.wardrobe]: https://github.com/prestidigitator/minetest-mod-wardrobe/tree/c48b011

View File

@ -235,7 +235,7 @@ function funcs.threeline(x, y, z)
return line
end
function funcs.sort(ps, preferred_coords)
function funcs.sort_positions(ps, preferred_coords)
preferred_coords = preferred_coords or {"z", "y", "x"}
local a,b,c = unpack(preferred_coords)
local function ps_sorting(p1, p2)
@ -270,7 +270,7 @@ end
--local areas = {}
function funcs.plane(ps)
-- sort positions and imagine the first one (A) as vector.zero
ps = vector.sort(ps)
ps = vector.sort_positions(ps)
local pos = ps[1]
local B = vector.subtract(ps[2], pos)
local C = vector.subtract(ps[3], pos)