Fixed numerical issue for points exactly on the ellipse axes (square root of difference of nearly equal numbers).