computeMPR calculates distance and angle points given