iunorm

Crate API Lines Of Code

This library facilitates mapping between floating-point numbers, normalized to some range, and (un)signed integers.

The by default mapping is used by the From/Into traits and the from_f32/to_f32 methods, and the equivalent f64 versions.

Additionally both Inorm & Unorm types can map from/to any custom floating-point range by using the from_f32_minmax/to_f32_minmax methods, and the equivalent f64 versions.