Skip to content
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

Custom Spline :00000 V1.0 #337

Open
IKKNIGHT opened this issue Dec 18, 2023 · 2 comments
Open

Custom Spline :00000 V1.0 #337

IKKNIGHT opened this issue Dec 18, 2023 · 2 comments

Comments

@IKKNIGHT
Copy link

Need Custom Spline rn rn rn V1.0

@IKKNIGHT
Copy link
Author

image
Reality

image
Expectation

@rbrott
Copy link
Member

rbrott commented Dec 18, 2023

You can drop down to the low-level spline API to have more control over derivatives:

        QuinticSpline1d xSpline = new QuinticSpline1d(
                new DualNum<>(new double[]{ x_0, dx_0, d2x_0 }),
                new DualNum<>(new double[]{ x_1, dx_1, d2x_1 })
        );
        QuinticSpline1d ySpline = new QuinticSpline1d(
                new DualNum<>(new double[]{ y_0, dy_0, d2y_0 }),
                new DualNum<>(new double[]{ y_1, dy_1, d2y_1 })
        );
        QuinticSpline2d spline = new QuinticSpline2d(xSpline, ySpline);

A QuinticSpline2d in Road Runner world is more like a quintic spline segment that just goes between two knots.

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

No branches or pull requests

2 participants