Normalises number within the inclusive range specified by start and end.
number
start
end
The number to normalise.
The start of the range.
The end of the range.
Returns the normalised number.
normalise(5, 0, 10)// => 0.5normalise(15, 0, 10)// => 1.5normalise(-5, 0, 10)// => -0.5 Copy
normalise(5, 0, 10)// => 0.5normalise(15, 0, 10)// => 1.5normalise(-5, 0, 10)// => -0.5
Normalises
number
within the inclusive range specified bystart
andend
.