Function utils::math::wrap [] [src]

pub fn wrap(val: f32, from: f32, to: f32) -> f32

Wrap value to a range.