---
name: "al_rotate_transform_3d"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_rotate_transform_3d/3alleg5"
---

# al\_rotate\_transform\_3d(3alleg5)

Allegro 5 API

## NAME

al\_rotate\_transform\_3d - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_rotate_transform_3d(ALLEGRO_TRANSFORM *trans,
     float x, float y, float z, float angle)
  ```

## DESCRIPTION

Combines the given transformation with a transformation which rotates coordinates around the given vector by the given angle in radians.

Note: The vector is assumed to be of unit length (otherwise it will also incur a scale).

## SINCE

5\.1.3
