---
name: "MATRIX"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MATRIX"
---

# MATRIX(3alleg)

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**(3alleg)](/MATRIX_f/3alleg.md), [**ex12bit**(3alleg)](/ex12bit/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**exstars**(3alleg)](/exstars/3alleg.md)
