---
name: "get_x_rotate_quat"
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_x_rotate_quat"
---

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

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).
