---
name: "get_z_rotate_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/get_z_rotate_matrix/3alleg4"
---

# get\_z\_rotate\_matrix(3alleg4)

Construct Z axis rotation matrices. Allegro game programming library.

## NAME

get\_z\_rotate\_matrix, get\_z\_rotate\_matrix\_f - Construct Z axis rotation matrices. Allegro game programming library.

## SYNOPSIS

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

**void get\_z\_rotate\_matrix(MATRIX \*m, fixed r);**

**void get\_z\_rotate\_matrix\_f(MATRIX\_f \*m, float r);**

## DESCRIPTION

Construct Z axis rotation matrices, storing them in m. When applied to a  point, these matrices will rotate it about the Z axis by the specified  angle (given in binary, 256 degrees to a circle format).

## SEE ALSO

**apply\_matrix**(3alleg4), **get\_rotation\_matrix**(3alleg4), **get\_x\_rotate\_matrix**(3alleg4), **get\_y\_rotate\_matrix**(3alleg4)
