1 unstable release

0.2.0 Dec 21, 2019

#1645 in Math

MIT license

7KB
121 lines

Soy

Rust interpolation library.

Why Soy?

Why not? I have a bad habit of naming my projects after fruit/foods. "Soy" is just par for the course.


lib.rs:

Soy

Rust interpolation library.

Usage

The main trait used for interpolation is soy::Lerper. It requires a single method, calculate, which calculates interpolation progression at a given time.

Example implementing linear interpolation, taken directly from soy's implementation:

struct Linear;

impl soy::Lerper for Linear {
    fn calculate(&self, t: f32) -> {
        t
    }
}

No runtime deps