rock-core / base-types

C/C++ and Ruby definition of the base types in Rock
6 stars 40 forks source link

spline: remove wrong validity check in Spline::interpolate #136

Closed doudou closed 5 years ago

doudou commented 5 years ago

The number of parameters must be the number of "real" points, not just the number of points. Since the only way we could get this number would be to scan the whole type array, just remove the check altogether.

This fixes creating splines with parameters and derivatives