pub fn normalise(input: f32, min: f32, max: f32) -> f32
normalise a value between the minimum and maximum value it could be