---
name: "get_vector_rotation_matrix_f"
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_vector_rotation_matrix/3alleg4"
---

# get\_vector\_rotation\_matrix\_f(3alleg4)

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

Part of [get\_vector\_rotation\_matrix(3alleg4)](/get_vector_rotation_matrix/3alleg4.md).

## 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**(3alleg4), **get\_rotation\_matrix**(3alleg4), **get\_align\_matrix**(3alleg4), **excamera**(3alleg4)
