# Vector:Distance

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Vector:Distance
- **Çeviri tarihi:** 2025-09-08

```lua
number Vector:Distance( Vector otherVector )
```

## Açıklama

Vektör ile diğer vektör arasındaki Öklid mesafesini döndürür.

> **NOT:** Bu fonksiyon, [Vector:DistToSqr](https://gmod.tr/wiki/Vector:DistToSqr) fonksiyonundan daha maliyetlidir. Ancak, karesi alınmış mesafeler Öklid mesafeleriyle aynı olmadığından, bu fonksiyonu kullanmadan önce lütfen [Vector:DistToSqr](https://gmod.tr/wiki/Vector:DistToSqr)'nin notlarına bakın.

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **otherVector**: Mesafenin hesaplanacağı vektör.

## Döndürülen Değer

1. [number](https://gmod.tr/wiki/number): Vektörler arasındaki mesafe.

### Örnek

A'dan B'ye olan mesafeyi alır.

```lua
print( Vector( 0, 0, 0 ):Distance( Vector( 2, 3, 4 ) ) )
```

**Çıktı:**

```lua
5.3851647377014
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Vector:Distance
