Commit Graph

60 Commits

Author SHA1 Message Date
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
3d43e4c644 Code hygiene. 2021-02-28 19:02:54 +01:00
80fb6fbe28 Tyyyyyyyyypo. 2021-02-27 23:58:01 +01:00
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
469a785767 Code hygiene. 2021-02-27 23:09:50 +01:00
dd7ae34670 Remove __NonExhaustive and replace with #[non_exhaustive]. 2021-02-27 23:09:19 +01:00
c50a9274a5 glam::Quat::lerp normalizes internally 2020-10-25 22:11:25 +01:00
3ffe6106ec Add impl-glam feature 2020-10-25 22:00:13 +01:00
04247d8706 bump nalgebra 2020-04-06 17:17:40 +03:00
89dfb61272 Add rustfmt.toml and reformat. 2020-03-19 01:22:26 +01:00
4630f44d6c run rustfmt 2020-03-18 13:59:22 +03:00
036d7df3eb fix Copy trait bound with nalgebra 0.20 2020-03-17 13:06:41 +03:00
824afef513 Fix Bézier interpolation. 2019-10-22 20:23:36 +02:00
22e75c6901 Fix Bézier interpolation. 2019-10-22 13:34:10 +02:00
cc0a9580ab Add Interpolation::StrokeBezier. 2019-10-17 17:23:46 +02:00
cae599e0d7 Add Spline::sample_with_key and Spline::clamped_sample_with_key. 2019-09-30 12:49:36 +02:00
ea29e08836 Fix cubic Bézier interpolation. 2019-09-24 21:31:18 +02:00
3ab98420c8 Remove unneeded comments. 2019-09-24 17:40:01 +02:00
6f65be125b 2.0.0. 2019-09-24 10:42:03 +02:00
4fdbfa6189 Fix 1.1. 2019-09-23 20:56:56 +02:00
7dbc85a312 Add key getters (immutable & mutable). 2019-09-23 20:34:39 +02:00
fd05dd0419 Update readme. 2019-09-23 17:08:32 +02:00
b05582d653 Add Bézier curves. 2019-09-23 17:06:32 +02:00
510881b5c6 Implement Spline::add.
Fixes #23.
2019-09-22 18:21:20 +02:00
1eed163277 Doc typo. 2019-09-22 18:13:52 +02:00
c98b493993 Add support for removing a key. #24 2019-09-21 14:42:08 +02:00
3d0a0c570e Fix nalgebra implementor.
Point must be removed because it is not additive.
2019-04-25 11:37:49 +02:00
e7ecc9819a Documentation, step 4. 2019-04-23 18:43:30 +02:00
e88da58a87 Step 3 of doc cleanup. 2019-04-23 18:43:30 +02:00
6ae3918eb1 Second pass of doc cleanup. 2019-04-23 18:43:30 +02:00
dcd82f7301 First doc cleanup. 2019-04-23 18:43:30 +02:00
476f762c5f Bump cgmath dependency. 2019-04-21 19:05:51 +02:00
609ebb0f37 Cleanup. 2019-04-21 18:51:43 +02:00
305ce7ac93 Align and reformat. 2019-04-21 18:51:43 +02:00
70d6cf2081 Implement impl-cgmath. 2019-04-21 18:51:43 +02:00
65a713c51b Implement impl-nalgebra feature. 2019-04-21 18:51:43 +02:00
427895ab10 The cubic_hermite_def function is a bit fucked as impossible to use. 2019-04-21 18:51:43 +02:00
99068fb2d0 Refactor all types in their own modules. 2019-04-21 18:51:43 +02:00
5b70d6921c Refactor polymorphic sampling code. 2019-04-19 13:04:55 +02:00
48623701a7 Fix some documentation. 2019-04-19 13:04:55 +02:00
f3bd7cee24 Add support for polymorphic sampling type. 2019-04-19 13:04:55 +02:00
55e792a98b Make Spline<T>::clamped_sample return Option<T> instead. #9 2019-04-16 17:40:08 +02:00
bc329fe736 Migrate to Rust 2018. 2019-04-13 21:54:17 +02:00
ed222e001d Fix a typo in the top-level documentation. 2019-04-13 21:54:17 +02:00
a3a2919eb4 0.2.3. 2018-10-13 03:31:44 +02:00
77ccf0a47b Add support for nalgebra along with some tests.
Feature-gated with impl-nalgebra.
2018-10-13 01:05:13 +02:00
0dcfe48415 minor spelling corrections 2018-09-30 21:32:59 +02:00
3cd65dce54 Fix feature documentation in both README and lib.rs. 2018-09-20 11:56:57 +02:00
820839abc0 Update the documentation. 2018-09-06 15:55:11 +02:00
865c855ac5 Remove cgmath implementors on no_std. 2018-09-06 15:55:11 +02:00