# LerpVector

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

```lua
Vector LerpVector( number fraction, Vector from, Vector to )
```

## Açıklama

İki vektör arasında doğrusal enterpolasyon. Genellikle iki vektör arasındaki hareketi yumuşatmak için kullanılır

> **NOT:** Eğer animasyonlarla uğraşıyorsanız, bu fonksiyonun ilk argümanında sabit bir değerle kullanılması amaçlanmamıştır! Zamanla değişen bir değer kullanın

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **fraction**: 0 ile 1 arasında değişen kesir
2. [Vector](https://gmod.tr/wiki/Vector) **from**: Başlangıç Vektörü
3. [Vector](https://gmod.tr/wiki/Vector) **to**: İstenen Vektör

## Dönüşler

1. [Vector](https://gmod.tr/wiki/Vector): Enterpolasyon uygulanmış vektör.

### Örnek

İki vektör arasındaki orta noktayı (%50) alın.

```lua
local output = LerpVector( 0.5, Vector( 0, 0, 100 ), Vector( 0, 0, 200 ) )
```

**Output:** Vector( 0, 0, 150 )

Pozisyonları yumuşatmak için bunu her karede yapıyorsanız, FrameTime() ile birlikte kullanmalısınız

- [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/Global.LerpVector
