---
name: "get_rotation_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_rotation_quat/3alleg4"
---

# get\_rotation\_quat(3alleg4)

Constructs a quaternion to rotate points around all three axes. Allegro game programming library.

## NAME

get\_rotation\_quat - Constructs a quaternion to rotate points around all three axes. Allegro game programming library.

## SYNOPSIS

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

**void get\_rotation\_quat(QUAT \*q, float x, float y, float z);**

## DESCRIPTION

Constructs a quaternion that will rotate points around all three axes by  the specified amounts (given in binary, 256 degrees to a circle format).

## SEE ALSO

**exquat**(3alleg4)
