MCPcopy Create free account
hub / github.com/PerroEngine/Perro / ismoothstep01_core

Function ismoothstep01_core

perro_source/api_modules/perro_modules/src/math.rs:114–117  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

112
113#[inline]
114fn ismoothstep01_core<T: FloatScalar>(value: T) -> T {
115 let x = clamp01_core(value);
116 T::HALF - ((T::ONE - T::TWO * x).asin() / T::THREE).sin()
117}
118
119#[inline]
120pub const fn deg_to_rad(degrees: f32) -> f32 {

Callers 1

ismoothstepFunction · 0.85

Calls 3

clamp01_coreFunction · 0.85
sinMethod · 0.80
asinMethod · 0.80

Tested by

no test coverage detected