User talk:100.34.157.235

To prove the bug fix, here's the sample points I used when debugging my own code:

Point[] P = { new Point(0.547, 0.787), new Point(0.536, 0.351), new Point(0.221, 0.455), new Point(0.922, 0.181), new Point(0.910, 0.794), new Point(0.103, 0.911), new Point(0.647, 0.780), new Point(0.730, 0.935), new Point(0.723, 0.263), new Point(0.632, 0.716), new Point(0.694, 0.531), new Point(0.497, 0.446), new Point(0.371, 0.642), // problem new Point(0.419, 0.570), new Point(0.944, 0.566)};