calcDistance

--Calculate the straight-line distance between two points
--The first parameter is a table consisting of the starting point coordinates
--The second parameter is a table consisting of the end point coordinates
local result,distance=World:calcDistance({x=0,y=0,z=0},{x=10,y=10,z=10})
--Display in the chat box
Chat:sendSystemMsg("The straight-line distance from (0,0) height 0 to (10,10) height 10 is"..distance)