[math-fun] Distance across integer coordinate planes