This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
## Mix
Constrain a value to lie between two further values
### Declaration
```glsl
floatmix(floatx,floaty,floata)
vec2mix(vec2x,vec2y,vec2a)
vec3mix(vec3x,vec3y,vec3a)
vec4mix(vec4x,vec4y,vec4a)
vec2mix(vec2x,vec2y,floata)
vec3mix(vec3x,vec3y,floata)
vec4mix(vec4x,vec4y,floata)
```
### Parameters
```x``` Specify the start of the range in which to interpolate.
```y``` Specify the end of the range in which to interpolate.
```a``` Specify the value to use to interpolate between x and y.
### Description
```mix()``` performs a linear interpolation between ```x``` and ```y``` using ```a``` to weight between them. The return value is computed as ```x×(1−a)+y×a```.