mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
9 lines
229 B
Lua
9 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
|