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

Function smoothstep_core

perro_source/api_modules/perro_modules/src/math.rs:108–111  ·  view source on GitHub ↗
(edge0: T, edge1: T, value: T)

Source from the content-addressed store, hash-verified

106
107#[inline]
108fn smoothstep_core<T: FloatScalar>(edge0: T, edge1: T, value: T) -> T {
109 let t = clamp01_core(ilerp_core(edge0, edge1, value));
110 smoothstep01_core(t)
111}
112
113#[inline]
114fn ismoothstep01_core<T: FloatScalar>(value: T) -> T {

Callers 3

smoothstepFunction · 0.85
slerpFunction · 0.85

Calls 3

clamp01_coreFunction · 0.85
ilerp_coreFunction · 0.85
smoothstep01_coreFunction · 0.85

Tested by 1