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

Function slerp

perro_source/api_modules/perro_modules/src/math.rs:156–158  ·  view source on GitHub ↗
(start: f32, end: f32, t: f32)

Source from the content-addressed store, hash-verified

154
155#[inline]
156pub fn slerp(start: f32, end: f32, t: f32) -> f32 {
157 lerp_core(start, end, smoothstep_core(0.0, 1.0, t))
158}
159
160#[inline]
161pub fn islerp(start: f32, end: f32, value: f32) -> f32 {

Callers 2

slerp_and_islerp_matchFunction · 0.85

Calls 2

lerp_coreFunction · 0.85
smoothstep_coreFunction · 0.85

Tested by 2

slerp_and_islerp_matchFunction · 0.68