Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerroEngine/Perro
/ clamp_unit
Function
clamp_unit
perro_editor/res/scripts/ui/editor_inspector_values.rs:3285–3287 ·
view source on GitHub ↗
(value: f32)
Source
from the content-addressed store, hash-verified
3283
let cols = args[1].parse::<usize>().ok()?.clamp(1, 32);
3284
Some((
3285
rows,
3286
cols,
3287
args.get(2).cloned().unwrap_or_else(||
"f32"
.to_string()),
3288
))
3289
}
3290
Callers
4
scene_value_as_unit
Function · 0.85
scene_value_as_unit_vec2
Function · 0.85
scene_value_as_unit_vec3
Function · 0.85
scene_value_as_unit_vec4
Function · 0.85
Calls
1
clamp
Method · 0.45
Tested by
no test coverage detected