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/distance/README-vi.md

25 lines
631 B
Markdown

## Distance
Tính khoảng cách giữa hai điểm
### Các phiên bản
```glsl
float distance(float p0, float p1)
float distance(vec2 p0, vec2 p1)
float distance(vec3 p0, vec3 p1)
float distance(vec4 p0, vec4 p1)
```
### Các tham số
```p0``` Điểm thứ nhất
```p1``` Điểm thứ hai
### Mô tả
```distance()``` trả về khoảng cách giữa hai điểm ```p0``` và ```p1```.
<div class="codeAndCanvas" data="../07/circle-making.frag"></div>
### Tham khảo thêm
[length()](/glossary/?lan=vi&search=length), [normalize()](/glossary/?lan=vi&search=normalize), [Chương 7: Hình dạng](/07/?lan=vi)