Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _getDistanceBetweenPoints2D(x1, y1, x2, y2)
- return math.sqrt((x1-x2)^2+(y1-y2)^2)
- end
- function _getDistanceBetweenPoints3D(x1, y1, z1, x2, y2, z2)
- return math.sqrt(math.sqrt((z1-z2)^2+(y1-y2)^2)^2+(x1-x2)^2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement