Given points and find the point in the interval on the -axis that maximizes angle