Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- calculate distance
- local get_distance = function(a, b)
- local x, y, z = a.x - b.x, a.y - b.y, a.z - b.z
- return square(x * x + y * y + z * z)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement