# Matrix

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

```lua
VMatrix Matrix( table data = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}} )
```

## Açıklama

4x4'lük bir matris olan [VMatrix](https://gmod.tr/wiki/VMatrix) nesnesini döndürür.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **data** = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}: Matrisi başlatmak için kullanılacak başlangıç verisi. Birim matris başlatmak için boş bırakın. Kullanım için örneklere bakın. Verisini kopyalamak için bir [VMatrix](https://gmod.tr/wiki/VMatrix) olabilir.

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

1. [VMatrix](https://gmod.tr/wiki/VMatrix): Yeni matris.

### Örnek

Bir matris başlatır, onu [Vector](https://gmod.tr/wiki/Vector)( 4, 5, 6 ) ile öteler ve ardından [Vector](https://gmod.tr/wiki/Vector)( 1, 2, 3 ) ile ölçeklendirir.

```lua
local M = Matrix()
M:Translate( Vector( 4, 5, 6 ) )
M:Scale( Vector( 1, 2, 3 ) )

-- Bu matris eşdeğerdir:
local M2 = Matrix( {
	{ 1, 0, 0, 4 },
	{ 0, 2, 0, 5 },
	{ 0, 0, 3, 6 },
	{ 0, 0, 0, 1 }
} )
```

- [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.Matrix
