al_transpose_transform(3alleg5)
π al_transpose_transform β Allegro 5 API π
okay bestie, welcome to the allegro5 manual page for al_transpose_transform, aka the glow-up your transform matrix has been waiting for β¨
π NAME π
al_transpose_transform β Allegro 5 API. that's it, that's the name, she's simple and she serves π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_transpose_transform(ALLEGRO_TRANSFORM *trans)
π¦ DESCRIPTION π¦
so what does she actually do? al_transpose_transform transposes the matrix of the transform you hand her. yep. that's the whole vibe. π₯
and why would you even want that? because it can be used for inversing a rotation transform π which is lowkey iconic of her. here's the example, look at it, absorb it:
al_build_camera_transform(camera, 0, 0, 0, x, y, z, xu, yu, zu)
al_copy_transform(inverse, camera)
al_transpose_transform(camera)
// Now "inverse" will be a transformation rotating in the opposite
// direction from "camera". Note that this only works if the camera
// position is 0/0/0 as in the example.
so after all that, inverse is a transformation rotating in the opposite direction from camera π and like β read the comment bestie, it's important, no cap: this only works if the camera position is 0/0/0 as in the example. not 1/0/0, not 0/2/3, only 0/0/0. periodt. don't come crying to me when your math is mathing wrong because you skipped that line π
β SINCE β
5.2.5 β she's been here since 5.2.5, an OG fr fr π«Ά
and that's the whole page, you ate that π this was the Allegro reference manual's page for al_transpose_transform(3alleg5), written and dated however long ago, and honestly? she's still slaying. mwah π
π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms