Open stoarca opened 1 year ago
That's not a rounding error. That's literally how IEEE floats work, but clamping is still a good idea.
by "rounding error" i was referring to the possible delta between the IEEE result and the exact mathematical result https://en.wikipedia.org/wiki/Round-off_error
Here's a test case:
I expect ret to be non-empty. The bug is in
Bezier.simple()
:This can be fixed by clamping s between -1 and 1.