Change something in MathUtils::FindDistance.

Replace get space method in MathUtils::FindDistance.