# math.Distance

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

```lua
number math.Distance( number x1, number y1, number x2, number y2 )
```

## Açıklama

2D uzaydaki iki nokta arasındaki mesafeyi döndürür.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **x1**: Birinci noktanın X konumu
2. [number](https://gmod.tr/wiki/number) **y1**: Birinci noktanın Y konumu
3. [number](https://gmod.tr/wiki/number) **x2**: İkinci noktanın X konumu
4. [number](https://gmod.tr/wiki/number) **y2**: İkinci noktanın Y konumu

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

1. [number](https://gmod.tr/wiki/number): İki nokta arasındaki mesafe

### Örnek

Bu fonksiyonun kullanımını gösterir.

```lua
print( math.Distance( 1, 2, 5, 6 ) ) -- distance bet
```

**Çıktı:** 5.6568542494924

- [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/math.Distance
