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

pub fn wrap<F: Float>(val: F, from: F, to: F) -> F

Wrap value to a range.