# Vector:DotProduct

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

```lua
number Vector:DotProduct( Vector Vector )
```

## Açıklama

> **KULLANIMDAN KALKTI:** Bunu kullanmamanızı tavsiye ederiz. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir.
> Bu, [Vector:Dot](https://gmod.tr/wiki/Vector:Dot) fonksiyonunun bir takma adıdır. Onun yerine o fonksiyonu kullanın.

İki vektörün skaler çarpımını (dot product) döndürür.

## Argümanlar

1. [Vector](https://gmod.tr/wiki/Vector) **Vector**: Diğer vektör.

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

1. [number](https://gmod.tr/wiki/number): Skaler Çarpım

### Örnek

Oyuncunun belirli bir yere baktığından emin olmayı sağlayan bir fonksiyon.

```lua
function IsLookingAt( ply, targetVec )
 return ply:GetAimVector():DotProduct( ( targetVec - ply:GetPos() + Vector(70) ):GetNormalized() ) < 0.95
end
```

**Çıktı:** Eğer oyuncu (ply) hedefe bakıyorsa (veya yakınına) true döndürür.

- [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:DotProduct
