#gamedev #interpolation #mint

minterpolate

Data set interpolation for mint primitives and raw arrays

6 releases (3 breaking)

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

#57 in Game development

Download history 520/week @ 2019-01-21 425/week @ 2019-01-28 532/week @ 2019-02-04 638/week @ 2019-02-11 376/week @ 2019-02-18 383/week @ 2019-02-25 549/week @ 2019-03-04 342/week @ 2019-03-11 313/week @ 2019-03-18 439/week @ 2019-03-25 536/week @ 2019-04-01 464/week @ 2019-04-08 1043/week @ 2019-04-15 868/week @ 2019-04-22 604/week @ 2019-04-29

2,866 downloads per month
Used in 12 crates (1 directly)

MIT/Apache

37KB
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

~353KB