pub trait CurveSIMD {
// Required method
fn y(&self, p: f32x8) -> f32x8;
}Required Methods§
Sourcefn y(&self, p: f32x8) -> f32x8
fn y(&self, p: f32x8) -> f32x8
Computes the y-axis of the curve from a progress value.
§params.
p | The 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);