al_transpose_transform(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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