minetest.dir to facedir

Description
Convert a vector to a facedir value, used in  for. It also takes an optional parameter that, when present and not nil/false, will make it take the y component of  into account.

See also: