shinnoske0727
3/14/2019 - 5:50 PM

正規化

const normalize = (val: number, max: number, min: number) =>
  (val - min) / (max - min);