Fix SplineHelper bug (#2018)

Add unit test to check interior waypoints
This commit is contained in:
Prateek Machiraju
2019-11-01 12:28:11 -04:00
committed by Peter Johnson
parent f33bd9f050
commit f6e311ef86
3 changed files with 49 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ public final class SplineHelper {
/ 4.0;
double[] midXControlVector = {waypoints[0].getX(), xDeriv};
double[] midYControlVector = {waypoints[0].getX(), yDeriv};
double[] midYControlVector = {waypoints[0].getY(), yDeriv};
splines[0] = new CubicHermiteSpline(xInitial, midXControlVector,
yInitial, midYControlVector);