MCPcopy 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_unitFunction · 0.85
scene_value_as_unit_vec2Function · 0.85
scene_value_as_unit_vec3Function · 0.85
scene_value_as_unit_vec4Function · 0.85

Calls 1

clampMethod · 0.45

Tested by

no test coverage detected