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

Function islerp

perro_source/api_modules/perro_modules/src/math.rs:161–164  ·  view source on GitHub ↗
(start: f32, end: f32, value: f32)

Source from the content-addressed store, hash-verified

159
160#[inline]
161pub fn islerp(start: f32, end: f32, value: f32) -> f32 {
162 let smooth_t = clamp01_core(ilerp_core(start, end, value));
163 ismoothstep(0.0, 1.0, smooth_t)
164}
165
166#[inline]
167pub fn ismoothstep(edge0: f32, edge1: f32, value: f32) -> f32 {

Callers 2

slerp_and_islerp_matchFunction · 0.85

Calls 3

clamp01_coreFunction · 0.85
ilerp_coreFunction · 0.85
ismoothstepFunction · 0.85

Tested by 2

slerp_and_islerp_matchFunction · 0.68