---
name: "get_vector_rotation_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_vector_rotation_quat"
---

# get\_vector\_rotation\_quat(3alleg)

Constructs a quaternion to rotate points around a vector. Allegro game programming library.

## NAME

get\_vector\_rotation\_quat - Constructs a quaternion to rotate points around a vector. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Constructs a quaternion that will rotate points around the specified  x,y,z vector by the specified angle (given in binary, 256 degrees to a  circle format).
