You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/fract/README-vi.md

22 lines
632 B
Markdown

## Fract
Tách phần thập phân của số thực.
### Các phiên bản
```glsl
float fract(float x)
vec2 fract(vec2 x)
vec3 fract(vec3 x)
vec4 fract(vec4 x)
```
### Các tham số
```x``` số thực cần tách phần thập phân.
### Mô tả
```fract()``` trả về phần thập phân của ```x``` theo công thức ```x - floor(x)```.
<div class="simpleFunction" data="y = fract(x); "></div>
### Tham khảo thêm
[floor](/glossary/?lan=vi&search=floor), [ceil](/glossary/?lan=vi&search=ceil), [mod](/glossary/?lan=vi&search=mod), [Các hàm số cơ bản (Hàm hình dạng - Shape function)](/05/?lan=vi)