function inverseLerp( x, y, value ) {

	// https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/inverse-lerp-a-super-useful-yet-often-overlooked-function-r5230/

	if ( x !== y ) {

		return ( value - x ) / ( y - x );

	} else {

		return 0;

	}

}
Returns the percentage in the closed interval `[0, 1]` of the given value
between the start and end point.

@param {number} x - The start point
@param {number} y - The end point.
@param {number} value - A value between start and end.
@return {number} The interpolation factor.