#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

#2144 in Algorithms

Download history 498/week @ 2024-07-19 518/week @ 2024-07-26 377/week @ 2024-08-02 1143/week @ 2024-08-09 603/week @ 2024-08-16 604/week @ 2024-08-23 610/week @ 2024-08-30 530/week @ 2024-09-06 502/week @ 2024-09-13 644/week @ 2024-09-20 674/week @ 2024-09-27 194/week @ 2024-10-04 331/week @ 2024-10-11 420/week @ 2024-10-18 500/week @ 2024-10-25 444/week @ 2024-11-01

1,699 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

~405–650KB
~13K SLoC