isInCircleAdapt sketch Java port
Do the non-robust calculation and calculation of error margin. If calculation is possibly not robust, fall back on slower math.
https://www.cs.cmu.edu/afs/cs/project/quake/public/code/predicates.c
References #298
Need unit tests before rolling this in.
Good find. This should provide both performance and robustness.
The same approach is currently used in computing the orientationIndex. Also based on Shewchuk's fine work.
Just in case, I would be happy if someone familiar with java takes over this PR, to make proper formatting, unit tests and code style.
Makes sense. And add some unit tests. Not sure when I'll have time to work on this though.