[][src]Function conrod_core::utils::map_range

pub fn map_range<X, Y>(
    val: X,
    in_min: X,
    in_max: X,
    out_min: Y,
    out_max: Y
) -> Y where
    X: NumCast,
    Y: NumCast

Map a value from a given range to a new given range.