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
Nội suy tuyến tính giữa 2 giá trị
### Các phiên bản
```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)
```
### Các tham số
```x``` Giá trị nhỏ hơn trong khoảng cần nội suy.
```y``` Giá trị lớn hơn trong khoảng cần nội suy.
```a``` Tỉ lệ nội suy.
### Mô tả
```mix()``` nội suy giá trị giữa ```x``` và ```y``` sử dụng ```a``` làm tỉ lệ nội suy / trọng số. Kết quả của phép tính ```x×(1−a)+y×a```.