Skip to main content

compute_mid_pos

Function compute_mid_pos 

Source
fn compute_mid_pos(min: i32, max: i32) -> i16
Expand description

Compute the mid position between two values, using wrapping arithmetic.