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.
22 lines
635 B
Markdown
22 lines
635 B
Markdown
4 years ago
|
## Floor
|
||
|
Find the nearest integer less than or equal to the parameter
|
||
|
|
||
|
### Các phiên bản
|
||
|
```glsl
|
||
|
float floor(float x)
|
||
|
vec2 floor(vec2 x)
|
||
|
vec3 floor(vec3 x)
|
||
|
vec4 floor(vec4 x)
|
||
|
```
|
||
|
|
||
|
### Các tham số
|
||
|
```x``` specify the value to evaluate.
|
||
|
|
||
|
### Mô tả
|
||
|
```floor()``` returns a value equal to the nearest integer that is less than or equal to ```x```.
|
||
|
|
||
|
<div class="simpleFunction" data="y = floor(x); "></div>
|
||
|
|
||
|
### Tham khảo thêm
|
||
|
[ceil](/glossary/?lan=vi&search=ceil), [fract](/glossary/?lan=vi&search=fract), [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)
|