corrected calculation error of point to midpoint distance
example plot aspect ration set to equal