Dimitri Sabadie
fb678f9613
Provide better feature gates.
...
- `serialization` becomes `serde`.
- `impl-nalgebra` becomes `nalgebra`.
- `impl-cgmath` becomes `cgmath`.
- `impl-glam` becomes `glam`.
Already existing feature gates are kept around so that we don’t
introduce a breaking change.
2021-07-11 16:18:47 +02:00
Dimitri Sabadie
3e85a1f026
Update and fix implementors for the new API.
2021-03-05 02:05:36 +01:00
Dimitri Sabadie
0ccc3c0956
Refactor the Interpolate trait and add the Interpolator trait.
...
This commit represents 99% of the rework. From now on, implementing the
API requires to provide the various interpolation implementations. This
is actually a good thing, because people will now be able to either use
the `impl_Interpolate!` macro, which implements the interpolation in a
very “math” way (using std::ops::* traits and float literals), or by
providing their own.
2021-03-05 02:03:46 +01:00
Dimitri Sabadie
3d43e4c644
Code hygiene.
2021-02-28 19:02:54 +01:00
Dimitri Sabadie
80fb6fbe28
Tyyyyyyyyypo.
2021-02-27 23:58:01 +01:00
Dimitri Sabadie
395dff34ee
Introduce the concept of SampledWithKey.
...
This allows to type more correctly the output of the `*_with_key`
functions.
2021-02-27 23:38:54 +01:00
Dimitri Sabadie
469a785767
Code hygiene.
2021-02-27 23:09:50 +01:00
Dimitri Sabadie
dd7ae34670
Remove __NonExhaustive and replace with #[non_exhaustive].
2021-02-27 23:09:19 +01:00
Joel Nordström
c50a9274a5
glam::Quat::lerp normalizes internally
2020-10-25 22:11:25 +01:00
Joel Nordström
3ffe6106ec
Add impl-glam feature
2020-10-25 22:00:13 +01:00
Alexander Bulaev
04247d8706
bump nalgebra
2020-04-06 17:17:40 +03:00
Dimitri Sabadie
89dfb61272
Add rustfmt.toml and reformat.
2020-03-19 01:22:26 +01:00
Alexander Bulaev
4630f44d6c
run rustfmt
2020-03-18 13:59:22 +03:00
Alexander Bulaev
036d7df3eb
fix Copy trait bound with nalgebra 0.20
2020-03-17 13:06:41 +03:00
Dimitri Sabadie
824afef513
Fix Bézier interpolation.
2019-10-22 20:23:36 +02:00
Dimitri Sabadie
22e75c6901
Fix Bézier interpolation.
2019-10-22 13:34:10 +02:00
Dimitri Sabadie
cc0a9580ab
Add Interpolation::StrokeBezier.
2019-10-17 17:23:46 +02:00
Dimitri Sabadie
cae599e0d7
Add Spline::sample_with_key and Spline::clamped_sample_with_key.
2019-09-30 12:49:36 +02:00
Dimitri Sabadie
ea29e08836
Fix cubic Bézier interpolation.
2019-09-24 21:31:18 +02:00
Dimitri Sabadie
3ab98420c8
Remove unneeded comments.
2019-09-24 17:40:01 +02:00
Dimitri Sabadie
6f65be125b
2.0.0.
2019-09-24 10:42:03 +02:00
Dimitri Sabadie
4fdbfa6189
Fix 1.1.
2019-09-23 20:56:56 +02:00
Dimitri Sabadie
7dbc85a312
Add key getters (immutable & mutable).
2019-09-23 20:34:39 +02:00
Dimitri Sabadie
fd05dd0419
Update readme.
2019-09-23 17:08:32 +02:00
Dimitri Sabadie
b05582d653
Add Bézier curves.
2019-09-23 17:06:32 +02:00
Dimitri Sabadie
510881b5c6
Implement Spline::add.
...
Fixes #23 .
2019-09-22 18:21:20 +02:00
Dimitri Sabadie
1eed163277
Doc typo.
2019-09-22 18:13:52 +02:00
Dimitri Sabadie
c98b493993
Add support for removing a key. #24
2019-09-21 14:42:08 +02:00
Dimitri Sabadie
3d0a0c570e
Fix nalgebra implementor.
...
Point must be removed because it is not additive.
2019-04-25 11:37:49 +02:00
Dimitri Sabadie
e7ecc9819a
Documentation, step 4.
2019-04-23 18:43:30 +02:00
Dimitri Sabadie
e88da58a87
Step 3 of doc cleanup.
2019-04-23 18:43:30 +02:00
Dimitri Sabadie
6ae3918eb1
Second pass of doc cleanup.
2019-04-23 18:43:30 +02:00
Dimitri Sabadie
dcd82f7301
First doc cleanup.
2019-04-23 18:43:30 +02:00
Dimitri Sabadie
476f762c5f
Bump cgmath dependency.
2019-04-21 19:05:51 +02:00
Dimitri Sabadie
609ebb0f37
Cleanup.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
305ce7ac93
Align and reformat.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
70d6cf2081
Implement impl-cgmath.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
65a713c51b
Implement impl-nalgebra feature.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
427895ab10
The cubic_hermite_def function is a bit fucked as impossible to use.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
99068fb2d0
Refactor all types in their own modules.
2019-04-21 18:51:43 +02:00
Dimitri Sabadie
5b70d6921c
Refactor polymorphic sampling code.
2019-04-19 13:04:55 +02:00
Dimitri Sabadie
48623701a7
Fix some documentation.
2019-04-19 13:04:55 +02:00
Dimitri Sabadie
f3bd7cee24
Add support for polymorphic sampling type.
2019-04-19 13:04:55 +02:00
Dimitri Sabadie
55e792a98b
Make Spline<T>::clamped_sample return Option<T> instead. #9
2019-04-16 17:40:08 +02:00
Dimitri Sabadie
bc329fe736
Migrate to Rust 2018.
2019-04-13 21:54:17 +02:00
Dimitri Sabadie
ed222e001d
Fix a typo in the top-level documentation.
2019-04-13 21:54:17 +02:00
Dimitri Sabadie
a3a2919eb4
0.2.3.
2018-10-13 03:31:44 +02:00
nsmryan
77ccf0a47b
Add support for nalgebra along with some tests.
...
Feature-gated with impl-nalgebra.
2018-10-13 01:05:13 +02:00
nsmryan
0dcfe48415
minor spelling corrections
2018-09-30 21:32:59 +02:00
Dimitri Sabadie
3cd65dce54
Fix feature documentation in both README and lib.rs.
2018-09-20 11:56:57 +02:00