al_rotate_transform_3d(3)
okay bestie, we're in al_rotate_transform_3d(3) territory, and this page is straight from the Allegro reference manual β Allegro 5 API, 3D rotation core. π
π NAME
al_rotate_transform_3d β Allegro 5 API
That's the whole name, no cap. π
β¨ SYNOPSIS
#include <allegro5/allegro.h>
void al_rotate_transform_3d(ALLEGRO_TRANSFORM *trans,
float x, float y, float z, float angle)
π« DESCRIPTION
okay so what it does: it combines the transformation you hand it with a transformation that rotates coordinates around the given vector, by the given angle in radians. β¨
heads up, bestie: the vector is assumed to be of unit length β if it isn't, it will also incur a scale. Not a drill, that's the note. π«Ά
π°οΈ SINCE
5.1.3 β yep, this one has been around since then. π
source/version: Allegro reference manual (Allegro 5 API); date: not listed on this page, so I'm literally not making one up. al_rotate_transform_3d(3) signing off β slay your 3D rotations πβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms