mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Annotate Minetest vector metatable support
This commit is contained in:
parent
afed4793cb
commit
233bda0123
@ -42,6 +42,7 @@ function to_xyzw(v)
|
|||||||
return {x = v[1], y = v[2], z = v[3], w = v[4]}
|
return {x = v[1], y = v[2], z = v[3], w = v[4]}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--+ not necessarily required, as Minetest respects the metatable
|
||||||
function to_minetest(v)
|
function to_minetest(v)
|
||||||
return mt_vector.new(unpack(v))
|
return mt_vector.new(unpack(v))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user