Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
130
pub fn clamp01(value: f32) -> f32 {
131
clamp01_core(value)
132
}
133
134
#[inline]
135
pub fn lerp(start: f32, end: f32, t: f32) -> f32 {
Callers
1
math_macros_typecheck_and_forward
Function · 0.85
Calls
1
clamp01_core
Function · 0.85
Tested by
1
math_macros_typecheck_and_forward
Function · 0.68