---
name: "get_vector_rotation_matrix"
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_matrix"
---

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

Constructs X, Y, Z rotation matrices with an angle. Allegro game programming library.

## NAME

get\_vector\_rotation\_matrix, get\_vector\_rotation\_matrix\_f - Constructs X, Y, Z rotation matrices with an angle. Allegro game programming library.

## SYNOPSIS

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

**void get\_vector\_rotation\_matrix(MATRIX \*m, fixed x, y, z, fixed a);**

**void get\_vector\_rotation\_matrix\_f(MATRIX\_f \*m, float x, y, z, float a);**

## DESCRIPTION

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

## SEE ALSO

[**apply\_matrix**(3alleg)](/apply_matrix/3alleg.md), [**get\_rotation\_matrix**(3alleg)](/get_rotation_matrix/3alleg.md), [**get\_align\_matrix**(3alleg)](/get_align_matrix/3alleg.md), [**excamera**(3alleg)](/excamera/3alleg.md)
