hadronized / splines

Interpolation made easy.
https://crates.io/crates/splines
Other
162 stars 31 forks source link

Default for Spline #101

Closed perlindgren closed 9 months ago

perlindgren commented 10 months ago

Hi folks.

Great library, I use it with Egui to good effect, for modelling curves.

I'm using serde but want the actual spline not to be serialized as I store only the knots in my own data structure.

To that end I want to use #[serde(skip)] but as I understand it requires Default to be implemented for the data structure.

I added an implementation per: https://github.com/phaazon/splines/pull/100

It passes all test so should be safe to merge.

/Per

hadronized commented 9 months ago

This is now released as part of splines-4.3.1.