---
name: "get_x_rotate_quat"
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_quat/3alleg4"
---

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

Construct axis rotation quaternions. Allegro game programming library.

## NAME

get\_x\_rotate\_quat, get\_y\_rotate\_quat, get\_z\_rotate\_quat - Construct axis rotation quaternions. Allegro game programming library.

## SYNOPSIS

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

**void get\_x\_rotate\_quat(QUAT \*q, float r);**

**void get\_y\_rotate\_quat(QUAT \*q, float r);**

**void get\_z\_rotate\_quat(QUAT \*q, float r);**

## DESCRIPTION

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