We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a test case:
let bezier = new Bezier( { "x": 14.187262535095215, "y": 8.270401954650879 }, { "x": 14.179354667663574, "y": 8.262494087219238 }, { "x": 14.179354667663574, "y": 8.262494087219238 }, { "x": 14.171446800231934, "y": 8.254586219787598 } ); let ret = bezier.reduce(); console.log(ret);
I expect ret to be non-empty. The bug is in Bezier.simple():
Bezier.simple()
This can be fixed by clamping s between -1 and 1.
The text was updated successfully, but these errors were encountered:
That's not a rounding error. That's literally how IEEE floats work, but clamping is still a good idea.
Sorry, something went wrong.
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
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: