CurveSIMD

Trait CurveSIMD 

Source
pub trait CurveSIMD {
    // Required method
    fn y(&self, p: f32x8) -> f32x8;
}
Expand description

§The Curve Parabola Interface using SIMD.

Required Methods§

Source

fn y(&self, p: f32x8) -> f32x8

Computes the y-axis of the curve from a progress value.

§params.
pThe progress.
§returns.

f32 — The progress of the y-axis value.

§examples.
use eazy::CurveSIMD;

struct Constant;
  
impl CurveSIMD for Constant {
  fn y(&self, p: f32x8) -> f32x8 {
    -f32x8::ZERO
  }
}
  
assert_eq!(Constant.y(0.0), -f32::INFINITY);

Implementors§