eazing 0.0.1

The blazingly fast and mathematically optimized `easing functions` kit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use eazing::bezier::Bezier;
use eazing::{Curve, Easing};

fn main() {
  let bezier = Easing::CubicBezier(Bezier::Curve(0.17, 0.67, 0.83, 0.67));

  println!("\ncubic-bezier:end\n");
  println!("progress = {}", bezier.y(0.01));
  println!("progress = {}", bezier.y(0.234));
  println!("progress = {}", bezier.y(0.446));
  println!("progress = {}", bezier.y(0.608));
  println!("progress = {}", bezier.y(0.706));
  println!("progress = {}", bezier.y(0.827));
  println!("progress = {}", bezier.y(1.0));
  println!("\ncubic-bezier:end\n");
}