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

Function clamp01

perro_source/api_modules/perro_modules/src/math.rs:130–132  ·  view source on GitHub ↗
(value: f32)

Source from the content-addressed store, hash-verified

128
129#[inline]
130pub fn clamp01(value: f32) -> f32 {
131 clamp01_core(value)
132}
133
134#[inline]
135pub fn lerp(start: f32, end: f32, t: f32) -> f32 {

Callers 1

Calls 1

clamp01_coreFunction · 0.85

Tested by 1