Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
83
fn clamp01_core<T: FloatScalar>(value: T) -> T {
84
clamp_core(value, T::ZERO, T::ONE)
85
}
86
87
#[inline]
88
fn lerp_core<T: FloatScalar>(start: T, end: T, t: T) -> T {
Callers
5
smoothstep_core
Function · 0.85
ismoothstep01_core
Function · 0.85
clamp01
Function · 0.85
islerp
Function · 0.85
ismoothstep
Function · 0.85
Calls
1
clamp_core
Function · 0.85
Tested by
no test coverage detected