eazing 0.0.1

The blazingly fast and mathematically optimized `easing functions` kit.
Documentation
//! # The Linear Curve.
//!
//! An algebric curve of degree one.
//!
//! #### formula.
//!
//! `p`

use crate::easing::Curve;

/// ### The [`Linear`] Easing Function.
///
/// #### examples.
///
/// ```
/// use eazing::Curve;
/// use eazing::polynomial::linear::Linear;
///
/// let p = Linear.y(1.0);
/// ```
#[derive(Debug)]
pub struct Linear;

impl Curve for Linear {
  #[inline]
  fn y(&self, p: f32) -> f32 {
    p
  }
}

#[test]
fn test_linear() {
  let p = Linear.y(100.0);

  assert_eq!(p, 100.0);
}