#interpolation #mint #gamedev

minterpolate

Data set interpolation for mint primitives and raw arrays

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

#1682 in Algorithms

Download history 469/week @ 2023-11-23 261/week @ 2023-11-30 345/week @ 2023-12-07 534/week @ 2023-12-14 413/week @ 2023-12-21 242/week @ 2023-12-28 301/week @ 2024-01-04 477/week @ 2024-01-11 451/week @ 2024-01-18 325/week @ 2024-01-25 211/week @ 2024-02-01 519/week @ 2024-02-08 652/week @ 2024-02-15 491/week @ 2024-02-22 496/week @ 2024-02-29 469/week @ 2024-03-07

2,157 downloads per month
Used in 15 crates (2 directly)

MIT/Apache

38KB
974 lines

minterpolate

Data set interpolation using mint primitives

License

Licensed under either of

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

~410–660KB
~14K SLoC