| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
float The interpolation parameter of x with respect to the input range [a, b].
Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
float2 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
float3 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
float4 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
double The interpolation parameter of x with respect to the input range [a, b].
Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
double2 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
double3 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).
| Parameter | Description |
|---|---|
| start | The start point of the range. |
| end | The end point of the range. |
| x | The value to normalize to the range. |
double4 The componentwise interpolation parameter of x with respect to the input range [a, b].
Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a).