Minetest-WorldEditAdditions/worldeditadditions/utils.lua
2018-05-20 14:19:43 +01:00

10 lines
229 B
Lua

worldeditadditions.vector = {}
function worldeditadditions.vector.tostring(v)
return "(" .. v.x ..", " .. v.y ..", " .. v.z ..")"
end
function worldeditadditions.vector.lengthsquared(v)
return v.x*v.x + v.y*v.y + v.z*v.z
end