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

Function clamp01_core

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

Source from the content-addressed store, hash-verified

81
82#[inline]
83fn clamp01_core<T: FloatScalar>(value: T) -> T {
84 clamp_core(value, T::ZERO, T::ONE)
85}
86
87#[inline]
88fn lerp_core<T: FloatScalar>(start: T, end: T, t: T) -> T {

Callers 5

smoothstep_coreFunction · 0.85
ismoothstep01_coreFunction · 0.85
clamp01Function · 0.85
islerpFunction · 0.85
ismoothstepFunction · 0.85

Calls 1

clamp_coreFunction · 0.85

Tested by

no test coverage detected