delaunator-cpp icon indicating copy to clipboard operation
delaunator-cpp copied to clipboard

Division by zero when finding third point.

Open projectPythonator opened this issue 8 months ago • 0 comments

when finding the third point which forms the smallest circumcircle with the first two, I noticed if 3 points happen to be vertically or horizontally collinear, d will get checked too late to prevent a division by zero. probably a rare case if using floats but just something I noticed (unless I missed the collinear check somewhere.)

projectPythonator avatar Apr 14 '25 12:04 projectPythonator