I want to measure the distance of the bold red line. I appreciate you trying to help me visualize but what you have found is the projection of the shortest distance in direction of any axis and not the distance between two planes along a direction. If you think over it, you'll realize that both are different.