#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

#2153 in Algorithms

Download history 426/week @ 2024-03-13 662/week @ 2024-03-20 588/week @ 2024-03-27 599/week @ 2024-04-03 505/week @ 2024-04-10 598/week @ 2024-04-17 605/week @ 2024-04-24 518/week @ 2024-05-01 519/week @ 2024-05-08 529/week @ 2024-05-15 621/week @ 2024-05-22 668/week @ 2024-05-29 543/week @ 2024-06-05 425/week @ 2024-06-12 511/week @ 2024-06-19 457/week @ 2024-06-26

2,032 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