# Panel:Distance

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

```lua
number Panel:Distance( Panel tgtPanel )
```

## Açıklama

Bu panel nesnesinin merkezi ile başka bir panel nesnesinin merkezi arasındaki doğrusal mesafeyi döndürür. **Bu fonksiyonun düzgün çalışması için her iki panelin de aynı ebeveyne (parent) sahip olması gerekir.**

## Argümanlar

1. [Panel](https://gmod.tr/wiki/Panel) **tgtPanel**: Konumu karşılaştırılacak hedef nesne.

## Döndürdüğü Değer

1. [number](https://gmod.tr/wiki/number): İki nesnenin merkezi arasındaki doğrusal (düz çizgi) mesafe.

- [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/Panel:Distance
