+ if (!MathUtil.equals(time[0], 0)) {
+ throw new IllegalArgumentException("Curve starts at time " + time[0]);
+ }
+ if (!MathUtil.equals(thrust[0], 0)) {
+ throw new IllegalArgumentException("Curve starts at thrust " + thrust[0]);
+ }
+ if (!MathUtil.equals(thrust[thrust.length-1], 0)) {
+ throw new IllegalArgumentException("Curve ends at thrust " +
+ thrust[thrust.length-1]);