---
name: "get_transformation_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/get_transformation_matrix"
---

# get\_transformation\_matrix(3alleg)

Constructs X, Y, Z rotation matrices with an angle and scaling. Allegro game programming library.

## NAME

get\_transformation\_matrix - Constructs X, Y, Z rotation matrices with an angle and scaling. Allegro game programming library.

## SYNOPSIS

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

**void get\_transformation\_matrix(MATRIX \*m, fixed scale,** **fixed xrot, yrot, zrot, x, y, z);**

## DESCRIPTION

Constructs a transformation matrix which will rotate points around all  three axes by the specified amounts (given in binary, 256 degrees to a  circle format), scale the result by the specified amount (pass 1 for no  change of scale), and then translate to the requested x, y, z position.

## SEE ALSO

[**apply\_matrix**(3alleg)](/apply_matrix/3alleg.md), [**get\_rotation\_matrix**(3alleg)](/get_rotation_matrix/3alleg.md), [**get\_scaling\_matrix**(3alleg)](/get_scaling_matrix/3alleg.md), [**get\_translation\_matrix**(3alleg)](/get_translation_matrix/3alleg.md), [**ex3d**(3alleg)](/ex3d/3alleg.md), [**exstars**(3alleg)](/exstars/3alleg.md)
