6 releases (3 breaking)
Uses old Rust 2015
0.4.0 | Oct 30, 2018 |
---|---|
0.3.0 | Jun 11, 2018 |
0.2.2 | Feb 9, 2018 |
0.2.1 | Jan 18, 2018 |
0.1.0 | Oct 27, 2017 |
#2144 in Algorithms
1,699 downloads per month
Used in 15 crates
(2 directly)
38KB
974 lines
minterpolate
Data set interpolation using mint primitives
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
We are a community project that welcomes contribution from anyone. If you're interested in helping out, you can contact
us either through GitHub, or via gitter
.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
Data set interpolation for mint
Vector3
and Quaternion
.
Can be extended by users to provide their own data types to interpolate over, using the
InterpolationPrimitive
trait.
Examples
use minterpolate::catmull_rom_spline_interpolate;
let input = vec![0., 1., 2., 3., 4.];
let output = vec![
[1., 0., 0.],
[0., 0., 0.],
[1., 0., 0.],
[0., 0., 0.],
[-1., 0., 0.],
[0., 0., 0.],
[-1., 0., 0.],
];
catmull_rom_spline_interpolate(0.5, &input, &output, false);
Dependencies
~405–650KB
~13K SLoC