---
name: "get_x_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_x_rotate_matrix/3alleg4"
---

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

Construct X axis rotation matrices. Allegro game programming library.

## NAME

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

## SYNOPSIS

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

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

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

## DESCRIPTION

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

## SEE ALSO

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