easey 2.1.0

Easing functions for interpolation between 0.0 and 1.0
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! generate_trigonometry_wave {
    ( $fxx:ident ) => {
        pub fn sin_wave(n: $fxx) -> $fxx {
            (::std::$fxx::consts::TAU * n).sin()
        }

        pub fn cos_wave(n: $fxx) -> $fxx {
            (::std::$fxx::consts::TAU * n).cos()
        }

        pub fn tan_wave(n: $fxx) -> $fxx {
            (::std::$fxx::consts::TAU * n).tan()
        }
    };
}