/* Advances state of random line and returns current value */
Advances state of random line and returns current value
Advances state of random line and returns current value
fn random_line_tick(rline: &mut random_line) -> f64 {
    let current_value = rline.current_val;
    rline.dur -= 1;
    if rline.dur <= 0 {
        random_line_reset(rline);
    }
    rline.current_val += rline.increment;
    rline.base + (current_value * rline.range)
}
fn random_line_tick ( rline : & mut random_line ) -> f64 { let current_value = rline . current_val ; rline . dur -= 1 ; if rline . dur <= 0 { random_line_reset ( rline ) ; } rline . current_val += rline . increment ; rline . base + ( current_value * rline . range ) }
Advances state of random line and returns current value
Advances state of random line and returns current value
rline
&mut random_line