### 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

. It requires a
single method, `soy ::`Lerper

`calculate`

, which calculates interpolation progression at a
given time.Example implementing linear interpolation, taken directly from

's
implementation:`soy`

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