---
name: "MATRIX"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MATRIX/3alleg4"
---

# MATRIX(3alleg4)

Fixed point matrix structure. Allegro game programming library.

## NAME

MATRIX - Fixed point matrix structure. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**typedef struct MATRIX**

## DESCRIPTION

```
   fixed v[3][3];           - 3x3 scaling and rotation component
   fixed t[3];              - x/y/z translation component
```

Fixed point matrix structure. Read chapter "3D math routines" for a description on how to obtain/use this structure.

## SEE ALSO

**MATRIX\_f**(3alleg4), **ex12bit**(3alleg4), **ex3d**(3alleg4), **exstars**(3alleg4)
