Function nyx_space::utils::denormalize

source ·
pub fn denormalize(xp: f64, min_x: f64, max_x: f64) -> f64
Expand description

Denormalize a value between -1.0 and 1.0

§Arguments

  • xp - The value to be denormalized.
  • min_x - The minimum value in the original range.
  • max_x - The maximum value in the original range.

§Returns

A denormalized value between min_x and max_x.