Skip to content

Get BSpline and a test for it working. #7515

New issue

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

Merged
merged 3 commits into from
Mar 9, 2025

Conversation

tommyettinger
Copy link
Member

This closes #7513 . It uses the code in that issue as a loose basis.

Non-continuous splines were pretty severely broken, but so was the sloppy AI-generated code testing the whole class. The test code assumed that splines were essentially straight lines, and "curve == line" is obviously false to a human being. The code was useful as a basis, but the test data was not, and caused test failures to appear incorrectly in some places.

I'm not sure this works in all cases, but it passes more than it did before. I had to guess at what some of the intended behavior was without any meaningful docs, also.

tommyettinger and others added 3 commits November 17, 2024 16:49
Non-continuous splines were pretty severely broken, but so was the sloppy AI-generated code testing the whole class. The test code assumed that splines were essentially straight lines, and "curve == line" is obviously false to a human being. The code was useful as a basis, but the test cases were not, and caused test failures to appear incorrectly in some places.

I'm not sure this works in all cases, but it passes more than it did before. I had to guess at what some of the intended behavior was without any meaningful docs, also.

This closes libgdx#7513 .
@Tom-Ski Tom-Ski merged commit 6e2e93a into libgdx:master Mar 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BSpline Test Failures and Suggested Fixes
3 participants