al_transpose_transform(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

al_transpose_transform(3) ✨

okay so this page is from the Library Functions Manual β€” it’s the Allegro 5 API manual, and we’re talking about al_transpose_transform(3), bestie. 🫢


πŸ‘‘ NAME πŸ‘‘

al_transpose_transform - Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_transpose_transform(ALLEGRO_TRANSFORM *trans)

πŸ¦‹ DESCRIPTION πŸ¦‹

This function transposes the matrix of the transform you pass in as trans. 🌈

You can use it for inversing a rotation transform β€” no cap, that’s the whole use case. For example: πŸ’…

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.

And yes, the caveat is right there in the comment: this only works if the camera position is 0/0/0 as in the example. Don’t skip it, bestie. 😭

πŸŽ€ SINCE πŸŽ€

5.2.5 β€” she’s been here since then, periodt. ⭐


cute footer sign-off: source/version: Allegro reference manual β€” date: not printed on this page, so no date to spill; the footer just gives the manual and al_transpose_transform(3). πŸ’–

πŸ“¦ 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